View source: R/lab_presenters.R
lab_presenters | R Documentation |
This function takes a set of presenter names and randomizes them into groups
of size n
based on the start_date
. The resulting table is then uploaded
to Google Drive. If the sheet_name
exists, it's updated, otherwise a new
spreadsheet is created which you can share later.
lab_presenters(
presenters,
start_date = "2019-09-18",
sheet_name = "Jaffelab research presenters",
n = 2,
repeat_day = 7
)
presenters |
A |
start_date |
A |
sheet_name |
A |
n |
The number of presenters per meeting. |
repeat_day |
An |
A one row table with the googledrive
information for the file
that was uploaded.
Leonardo Collado-Torres
googledrive_csv
## Presenters as of 2019-09-12
jaffe_research_presenters <- c(
"Brianna", "Emily", "Josh", "Kira", "Leo",
"Maddy", "Matt", "Nick"
)
if (googledrive::drive_has_token()) {
## You'll need to have access to Google Drive through
## googledrive::drive_auth() set up.
## Set the seed for reproducibility of the results
set.seed(20190918)
## Update lab presenters sheet
lab_presenters(
presenters = jaffe_research_presenters,
start_date = "2019-09-18",
sheet_name = "Jaffelab research presenters - example",
n = 2
)
## If it's a new sheet, we recommend sharing an editable link so other
## lab members can swap out as necessary.
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.