Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

set_makevars

Create a new Makevars file, by adding new variables


Description

You probably want with_makevars() instead of this function.

Usage

set_makevars(
  variables,
  old_path = makevars_user(),
  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.


withr

Run Code 'With' Temporarily Modified Global State

v2.4.2
MIT + file LICENSE
Authors
Jim Hester [aut, cre], Kirill Müller [aut], Kevin Ushey [aut], Hadley Wickham [aut], Winston Chang [aut], Jennifer Bryan [ctb], Richard Cotton [ctb], RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.