tt_clean: Create and open cleaning.R

View source: R/tt_clean.R

tt_cleanR Documentation

Create and open cleaning.R

Description

The first step of curating a TidyTuesday dataset is cleaning the data. This function creates a simple cleaning.R file in the specified path (creating that path if it does not already exist), and (if possible) opens it for editing.

Usage

tt_clean(
  path = "tt_submission",
  open = rlang::is_interactive(),
  ignore = FALSE
)

Arguments

path

The relative path to the directory to hold your submission files (tt_submission by default). If this directory does not exist, it will be created.

open

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

ignore

Should the newly created file be added to .Rbuildignore?

Value

A logical vector indicating whether the file was created or modified, invisibly.

Examples



  tt_clean()


tidytuesdayR documentation built on June 8, 2025, 1:33 p.m.