You probably want with_makevars() instead of this function.
Usage
set_makevars(
  variables,
  old_path = makevars_user(),
  new_path = tempfile(),
  assignment = c("=", ":=", "?=", "+=")
)Details
Unlike with_makevars(), it does not activate the new Makevars
file, i.e. it does not set the R_MAKEVARS_USER environment variable.
