diff --git a/scripts/utils/set-local-calibration.sh b/scripts/utils/set-local-calibration.sh index a5c256c760..cfb8333f5e 100755 --- a/scripts/utils/set-local-calibration.sh +++ b/scripts/utils/set-local-calibration.sh @@ -24,10 +24,7 @@ cp ../scripts/utils/set-local-calibration/pre-commit .git/hooks cp ../scripts/utils/set-local-calibration/post-commit .git/hooks chmod u+x .git/hooks/pre-commit .git/hooks/post-commit -# create additional .Rprofile (sourced through default .Rprofile) -echo -e "options(remind_repos = c(\n" \ - " getOption(\"remind_repos\"),\n" \ - " stats::setNames(list(x = NULL), \"$PWD\")))" \ - > .Rprofile_calibration_results +# add additional .Rprofile (sourced through default .Rprofile) +cp ../scripts/utils/set-local-calibration/.Rprofile_calibration_results ./ cd "$OLDPWD" diff --git a/scripts/utils/set-local-calibration/.Rprofile_calibration_results b/scripts/utils/set-local-calibration/.Rprofile_calibration_results new file mode 100644 index 0000000000..0443d720e8 --- /dev/null +++ b/scripts/utils/set-local-calibration/.Rprofile_calibration_results @@ -0,0 +1,4 @@ +options(remind_repos = c( + getOption("remind_repos"), + stats::setNames(list(x = NULL), + dirname(normalizePath(parent.frame(2)[['ofile']])))))