You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The source of this issue is the delayed evaluation of the path = makevars_user() default argument. makevars_user() is only evaluated in set_makevars(), where the environment variable R_MAKEVARS_USER has already been changed to point to a temporary filename. If I pass the filename explicitly, the contents of Makevars are correctly retained.
When I use
with_makevars()
in the presence of an existing ~/.R/Makevars file, the contents of the latter is simply ignored.The source of this issue is the delayed evaluation of the
path = makevars_user()
default argument.makevars_user()
is only evaluated inset_makevars()
, where the environment variableR_MAKEVARS_USER
has already been changed to point to a temporary filename. If I pass the filename explicitly, the contents of Makevars are correctly retained.So this issue can be fixed by forcing the evaluation of the
path
argument before passing it toset_makevars()
.This issue affects
local_makevars()
too.The text was updated successfully, but these errors were encountered: