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")))
dir.create
.file.copy
.dir.create
."en"
(english) and "fr"
(french).store_new_submissions
.store_new_submissions
.train
, test
, y_test
and
ind_quiz
such as returned by the data_split
function.Install a new challenge.
path <- tempdir() wd <- setwd(path) # english version new_challenge()New challenge installed in: "/tmp/Rtmp5vusFY" Next steps to complete the installation: 1. Replace the data files in the "data" subdirectory. 2. Replace the baseline predictions in "submissions/baseline". 3. Customize the template R Markdown file "challenge.rmd" as needed. 4. Create and share subdirectories in "submissions" for each team: rchallenge::new_team("team_foo", "team_bar", path=".", submissions_dir="submissions") 5. Publish the html page in your "Dropbox/Public" folder: rchallenge::publish("./challenge.rmd") 6. Give the Dropbox public link to "Dropbox/Public/challenge.html" to the participants. 7. Automate the updates of the webpage. On Unix systems, you can setup the following line to your crontab using "crontab -e": 0 * * * * Rscript -e 'rchallenge::publish("/tmp/Rtmp5vusFY/challenge.rmd")'# french version new_challenge(template = "fr")New challenge installed in: "/tmp/Rtmp5vusFY" Next steps to complete the installation: 1. Replace the data files in the "data" subdirectory. 2. Replace the baseline predictions in "submissions/baseline". 3. Customize the template R Markdown file "challenge.rmd" as needed. 4. Create and share subdirectories in "submissions" for each team: rchallenge::new_team("team_foo", "team_bar", path=".", submissions_dir="submissions") 5. Publish the html page in your "Dropbox/Public" folder: rchallenge::publish("./challenge.rmd") 6. Give the Dropbox public link to "Dropbox/Public/challenge.html" to the participants. 7. Automate the updates of the webpage. On Unix systems, you can setup the following line to your crontab using "crontab -e": 0 * * * * Rscript -e 'rchallenge::publish("/tmp/Rtmp5vusFY/challenge.rmd")'setwd(wd) unlink(path)