wflow_update: Update a workflowr project.

Description Usage Arguments Details Value See Also Examples

Description

Newer versions of workflowr sometimes make changes that need to be coordinated across multiple files. After upgrading workflowr, run wflow_update to make all the necessary changes.

Usage

1
2
wflow_update(dry_run = TRUE, commit = TRUE, log_file = NULL,
  log_open = interactive(), project = ".")

Arguments

dry_run

logical (default: TRUE). Preview the proposed updates.

commit

logical (default: TRUE). Commit the updated files (only files tracked by Git are included in commit). Only executed if dry_run = FALSE.

log_file

character (default: NULL). A file to save the log messages. If NULL, a temporary file is created.

log_open

logical (default: interactive()). Should the log file be opened in RStudio? This argument is ignored if the function is not run from within RStudio.

project

character (default: ".") By default the function assumes the current working directory is within the project. If this is not true, you'll need to provide the path to the project directory.

Details

By default, wflow_update is run in dry_run mode so that no unwanted changes are made. The log file contains the changes to each file, represented with the syntax from the Unix diff utility. After reviewing the log file for the proposed changes, re-run the function with dry_run = FALSE to implement them.

Currently wflow_update checks for the following items:

Value

A character vector of the updated files.

See Also

wflow_convert

Examples

1
2
3
4
5
6
7
8
## Not run: 

# Preview the potential changes
wflow_update()
# Incorporate the changes
wflow_update(dry_run = FALSE)

## End(Not run)

jdblischak/workflowrBeta documentation built on May 17, 2019, 7:28 p.m.