check: Check for and fix common mistakes in .Rprofile

View source: R/check.R

checkR Documentation

Check for and fix common mistakes in .Rprofile

Description

Check for and fix common mistakes in ‘.Rprofile’ files.

Usage

check(all = FALSE, fix = TRUE, backup = TRUE, debug = FALSE)

Arguments

all

Should all or only the first entry on the R startup search path be checked?

fix

If TRUE, detected issues will be tried to be automatically fixed, otherwise not.

backup

If TRUE, a timestamped backup copy of the original file is created before modifying it, otherwise not.

debug

If TRUE, debug messages are outputted, otherwise not.

Value

Returns invisibly a character vector of files that were "fixed" (modified), if any. If no files needed to be fixed, or fix = TRUE, then an empty vector is returned.

References

  1. R-devel thread 'Last line in .Rprofile must have newline (PR#4056)', 2003-09-03, https://stat.ethz.ch/pipermail/r-devel/2003-September/027457.html


HenrikBengtsson/startup documentation built on Jan. 31, 2024, 9:17 a.m.