We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a529521 commit 6c7dd80Copy full SHA for 6c7dd80
init-env.sh
@@ -13,7 +13,7 @@ show_help() {
13
14
initialise_r() {
15
if [ "${FORCE}" = true ] || [ ! -f "renv.lock" ]; then
16
- if grep -q 'source("renv/activate.R")' .Rprofile; then
+ if [ -f ".Rprofile" ] && grep -q 'source("renv/activate.R")' .Rprofile; then
17
sed -i '' '/source("renv\/activate.R")/d' .Rprofile
18
fi
19
Rscript -e 'renv::init(bare = FALSE)'
0 commit comments