new_entry: Create a New Notebook Entry

Description Usage Arguments Details

Description

Thanks to https://github.com/brendan-R/brocks for inspiring this function

Usage

1
2
new_entry(title = "New entry", dir = "_rmd", subdir = "new_entry",
  skeleton = "_build/skeleton_entry.Rmd")

Arguments

title

The title of the entry

dir

The directory all of your .Rmd entries are in

subdir

The subdirectory with dir that you want your new entry to be placed it

skeleton

The filepath of a skeleton of a new entry

Details

This function will add a new entry within the '_rmd' directory under a subdirectory by default and create a blank .R script to accompany it

new_entry will create a .R file, and a .Rmd file withinin a subdirectory, with names created by running title through filenamise. The .R file will contain a short note mentioning that it accompanies the .Rmd file, which will contain the same text as the file supplied by skeleton paramter.


thephilross/iver documentation built on May 31, 2019, 9:49 a.m.