Learn R Programming

startup (version 0.22.0)

check: 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)

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.

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.

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