notebook_create_page: Create a new notebook page

View source: R/use-notestar.R

notebook_create_pageR Documentation

Create a new notebook page

Description

Creates a file with pattern [notebook_dir]/[date][-slug].Rmd.

Usage

notebook_create_page(slug = NULL, date = NULL, open = TRUE)

Arguments

slug

Optional "slug" (label) for the post. Defaults to "".

date

Optional data to use. This date should have the format YYYY-MM-DD. Defaults to the current date.

open

Whether to open the new file for editing. Defaults to rlang::is_interactive().

Value

Invisible returns the relative path to the created file.


tjmahr/tarnotes documentation built on June 19, 2022, 4:40 a.m.