Description Usage Arguments Details Examples
Prints a header to the console to be copied and pasted into the YAML of a project protocol or manuscript R Markdown file. These lines essentially produce a title page when the R Markdown file is knitted.
1 |
project |
Project |
archived |
Logical, indicating whether or not the function should
consider archived projects when determining which project the user is
referring to in the See the Details section of |
The project header consists of:
the project title
the author list
the list of author affiliations
corresponding author information
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | #############################################################################
# SETUP
old_home <- Sys.getenv("HOME")
old_ppath <- Sys.getenv("PROJECTS_FOLDER_PATH")
temp_dir <- tempfile("dir")
dir.create(temp_dir)
Sys.unsetenv("PROJECTS_FOLDER_PATH")
Sys.setenv(HOME = temp_dir)
setup_projects(path = temp_dir)
new_affiliation(department_name = "Math Dept.",
institution_name = "Springfield College",
address = "123 College St, Springfield, AB")
new_affiliation(department_name = "Art Department",
institution_name = "Springfield College",
address = "321 University Boulevard, Springfield, AB",
id = 42)
new_affiliation(department_name = "Central Intelligence Agency",
institution_name = "United States Government",
address = "888 Classified Dr, Washington DC")
new_affiliation(department_name = "Pyrotechnics",
institution_name = "ACME")
new_author(given_names = "Rosetta", last_name = "Stone",
affiliations = c(42, "Math"), degree = "PhD",
email = "slab@rock.net", phone = "867-555-5309", id = 8888)
new_author(given_names = "Spiro", last_name = "Agnew", degree = "LLB",
affiliations = "Art D", id = 13)
new_author(given_names = "Plato", id = 303)
new_project(title = "Test Project 1", authors = c(13, "303", "Stone"),
corresp_auth = "Stone")
#############################################################################
header(1)
#############################################################################
# CLEANUP
Sys.setenv(HOME = old_home, PROJECTS_FOLDER_PATH = old_ppath)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.