set_makevars

0th

Percentile

Create a new Makevars file, by adding new variables

You probably want with_makevars() instead of this function.

Keywords
internal
Usage
set_makevars(variables, old_path = file.path("~", ".R", "Makevars"),
  new_path = tempfile(), assignment = c("=", ":=", "?=", "+="))
Arguments
variables

[named character] new variables and their values

old_path

[character(1)] location of existing Makevars file to modify.

new_path

[character(1)] location of the new Makevars file

assignment

[character(1)] assignment type to use.

Details

Unlike with_makevars(), it does not activate the new Makevars file, i.e. it does not set the R_MAKEVARS_USER environment variable.

Aliases
  • set_makevars
Documentation reproduced from package withr, version 2.1.2, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.