View source: R/create_project.R
create_rmd | R Documentation |
Create an .Rmd file for code
create_rmd(rootdir = here::here(), filename = "00_new_code_file.Rmd")
rootdir |
Path to root of the directory created
with |
filename |
Character specifying the name of the .Rmd file to be created. Default: 0_new_code_file.Rmd. |
Path to newly created .Rmd file.
rootdir <- file.path(tempdir(), "tidyproj_example")
c <- create_project_tree(rootdir)
# Create file
fname <- paste0(sample(1:100, 1), "_new_analysis.Rmd")
file <- create_rmd(rootdir, filename = fname)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.