Commit e84dc8bf authored by domingue's avatar domingue

Changes in the logic

parent aabf5f45
......@@ -493,7 +493,9 @@ create_renv() {
cd ${to_initiate}
echo "Location is" `pwd`
if [ -d "renv" ]; then
if [ -d renv ]; then
echo "renv folder already exists. Skipping renv setup."
else
R --slave -e 'renv::init(bare = TRUE)'
echo "Find libraries and install packages from the following directories:"
......@@ -504,8 +506,6 @@ create_renv() {
Rscript ${NGS_TOOLS}/common/hydrate_renv.R ${to_initiate} --sourceDirs ${to_source}
echo "renv successfully created."
else
echo "renv folder already exists. Skipping renv setup."
fi
echo "Make sure that your .Rprofile contains the following code:"
echo "if (Sys.getenv('PRJ_SCRIPTS') != '') { renv::load(project = Sys.getenv('PRJ_SCRIPTS')) }"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment