Learn R Programming

organizr (version 0.1.0)

r: Quickly create and open files with consistent prefixes.

Description

r() creates an R script.

py() creates a Python script.

rmd() creates an Rmarkdown document.

qmd() creates a Quarto document.

Usage

r(
  name,
  prefix_by = c("count", "date"),
  proj_path = here::here(),
  open = rlang::is_interactive()
)

qmd( name, prefix_by = c("count", "date"), proj_path = here::here(), open = rlang::is_interactive() )

rmd( name, prefix_by = c("count", "date"), proj_path = here::here(), open = rlang::is_interactive() )

py( name, prefix_by = c("count", "date"), proj_path = here::here(), open = rlang::is_interactive() )

Value

The filepath as a character string.

Arguments

name

A character string; name of the script.

prefix_by

Which prefix to use. Can be "count" or "date".

proj_path

Project path.

open

If TRUE, tries to open the file with RStudio after creation.

Details

Orgnizr allows you to set some global options. See https://github.com/jobrachem/organizr for details.