Package 'opensky'

Title: Templates for 'ggplot2' and 'R Markdown'
Description: Templates for 'ggplot2' and 'R Markdown'. 'opensky' provides functions to include templates for 'xaringan' slides, 'ggplot2' helpers, and 'R Markdown' documents.
Authors: Malcolm Barrett [aut, cre]
Maintainer: Malcolm Barrett <[email protected]>
License: MIT + file LICENSE
Version: 0.2.0
Built: 2024-11-02 02:56:38 UTC
Source: https://github.com/emptyfield-ds/opensky

Help Index


Use a blank R Markdown file with reasonable settings

Description

Use a blank R Markdown file with reasonable settings

Usage

use_blank_rmd(save_as, open = is_interactive())

Arguments

save_as

Path of file to create, relative to root of active project. Defaults to template

open

Open the newly created file for editing? Happens in RStudio, if applicable, or via utils::file.edit() otherwise.


Use ggplot2 templates

Description

Including theme_minimal2(), geom_point2(), and other variants

Usage

use_ggplot2_utils(save_as = NULL, open = FALSE)

Arguments

save_as

Path of file to create, relative to root of active project. Defaults to template

open

Open the newly created file for editing? Happens in RStudio, if applicable, or via utils::file.edit() otherwise.


Use compat-purrr.R from rlang

Description

Use compat-purrr.R from rlang

Usage

use_purrr_compat(save_as = "compat-purrr.R", open = is_interactive())

Arguments

save_as

Path of file to create, relative to root of active project. Defaults to template

open

Open the newly created file for editing? Happens in RStudio, if applicable, or via utils::file.edit() otherwise.


Use an ignored rhub.R file

Description

Use an ignored rhub.R file

Usage

use_r_hub(save_as = "rhub.R", open = is_interactive())

Arguments

save_as

Path of file to create, relative to root of active project. Defaults to template

open

Open the newly created file for editing? Happens in RStudio, if applicable, or via utils::file.edit() otherwise.


Create setup.R in the testthat file

Description

Create setup.R in the testthat file

Usage

use_testthat_setup(open = is_interactive())

Arguments

open

Open the newly created file for editing? Happens in RStudio, if applicable, or via utils::file.edit() otherwise.


Use utils.R with ⁠%||%⁠ and ⁠%nin%⁠

Description

Use utils.R with ⁠%||%⁠ and ⁠%nin%⁠

Usage

use_utils(save_as = "utils.R", open = is_interactive())

edit_utils(open = is_interactive())

Arguments

save_as

Path of file to create, relative to root of active project. Defaults to template

open

Open the newly created file for editing? Happens in RStudio, if applicable, or via utils::file.edit() otherwise.


Use xaringan templates

Description

Use xaringan templates

Usage

use_xaringan_kakashi(save_as, open = is_interactive())

use_xaringan_tozan(save_as, open = is_interactive())

Arguments

save_as

Path of file to create, relative to root of active project. Defaults to template

open

Open the newly created file for editing? Happens in RStudio, if applicable, or via utils::file.edit() otherwise.