Install a new challenge.
new_challenge(
path = ".",
out_rmdfile = "challenge.rmd",
recursive = FALSE,
overwrite = recursive,
quiet = FALSE,
showWarnings = FALSE,
template = c("en", "fr"),
data_dir = "data",
submissions_dir = "submissions",
hist_dir = "history",
install_data = TRUE,
baseline = "baseline",
add_baseline = install_data,
clear_history = overwrite,
title = "Challenge",
author = "",
date = "",
email = "EDIT_EMAIL@DOMAIN.com",
date_start = format(Sys.Date(), "%d %b %Y"),
deadline = paste(Sys.Date() + 90, "23:59:59"),
data_list = data_split(get_data("german"))
)
string. install path of the challenge (should be somewhere in your Dropbox).
string. name of the output R Markdown file.
logical. should elements of the path other than the last be created? see dir.create
.
logical. should existing destination files be overwritten? see file.copy
.
logical. deactivate text output.
logical. should the warnings on failure be shown? see dir.create
.
string. name of the template R Markdown script to be installed.
Two choices are available: "en"
(english) and "fr"
(french).
string. subdirectory of the data.
string. subdirectory of the submissions. see store_new_submissions
.
string. subdirectory of the history. see store_new_submissions
.
logical. activate installation of the data files of the template challenge.
string. name of the team considered as the baseline.
logical. activate installation of baseline submission files of the template challenge.
logical. activate deletion of the existing history folder.
string. title displayed on the webpage.
string. author displayed on the webpage.
string. date displayed on the webpage.
string. email of the challenge administrator.
string. start date of the challenge.
string. deadline of the challenge.
list with members train
, test
, y_test
and
ind_quiz
such as returned by the data_split
function.
The path of the created challenge is returned.
# NOT RUN {
path <- tempdir()
wd <- setwd(path)
# english version
new_challenge()
# french version
new_challenge(template = "fr")
setwd(wd)
unlink(path)
# }
Run the code above in your browser using DataLab