create_rmd: Create an .Rmd file for code

View source: R/create_project.R

create_rmdR Documentation

Create an .Rmd file for code

Description

Create an .Rmd file for code

Usage

create_rmd(rootdir = here::here(), filename = "00_new_code_file.Rmd")

Arguments

rootdir

Path to root of the directory created with create_project_tree(). Default: here::here(). Default: here::here().

filename

Character specifying the name of the .Rmd file to be created. Default: 0_new_code_file.Rmd.

Value

Path to newly created .Rmd file.

Examples

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)

almeidasilvaf/tidyproj documentation built on Jan. 19, 2024, 3:56 p.m.