IBM Support

Cannot use Proxy in RStudio in WSL 2.1

Troubleshooting


Problem

The package rlang cannot be upgraded.

Symptom

The update of the package had nonzero exit status.
> install.packages("rlang")
Error in install.packages : Updating loaded packages
> install.packages("rlang")
Installing package into ‘/cc-home/_global_/R’
(as ‘lib’ is unspecified)
trying URL 'http://artifactory.ads.vhv.de/artifactory/cran-uni-muenster/src/contrib/rlang_0.4.6.tar.gz';
Content type 'application/x-gzip' length 835198 bytes (815 KB)
==================================================
downloaded 815 KB

* installing *source* package ‘rlang’ ...
** package ‘rlang’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
x86_64-conda_cos6-linux-gnu-cc -I"/opt/conda/envs/R-3.6/lib/R/include" -DNDEBUG -I./lib/  -DNDEBUG -D_FORTIFY_SOURCE=2 -O2  -I/opt/conda/envs/R-3.6/include -Wl,-rpath-link,/opt/conda/envs/R-3.6/lib -fvisibility=hidden -fpic  -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector -fno-plt -O2 -ffunction-sections -pipe -I/opt/conda/envs/R-3.6/include -fdebug-prefix-map=/home/builder/ktietz/conda/conda-bld/r-base_1558084822424/work=/usr/local/src/conda/r-base-3.6.0 -fdebug-prefix-map=/opt/conda/envs/R-3.6=/usr/local/src/conda-prefix  -c capture.c -o capture.o
x86_64-conda_cos6-linux-gnu-cc -I"/opt/conda/envs/R-3.6/lib/R/include" -DNDEBUG -I./lib/  -DNDEBUG -D_FORTIFY_SOURCE=2 -O2  -I/opt/conda/envs/R-3.6/include -Wl,-rpath-link,/opt/conda/envs/R-3.6/lib -fvisibility=hidden -fpic  -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector -fno-plt -O2 -ffunction-sections -pipe -I/opt/conda/envs/R-3.6/include -fdebug-prefix-map=/home/builder/ktietz/conda/conda-bld/r-base_1558084822424/work=/usr/local/src/conda/r-base-3.6.0 -fdebug-prefix-map=/opt/conda/envs/R-3.6=/usr/local/src/conda-prefix  -c export.c -o export.o
x86_64-conda_cos6-linux-gnu-cc -I"/opt/conda/envs/R-3.6/lib/R/include" -DNDEBUG -I./lib/  -DNDEBUG -D_FORTIFY_SOURCE=2 -O2  -I/opt/conda/envs/R-3.6/include -Wl,-rpath-link,/opt/conda/envs/R-3.6/lib -fvisibility=hidden -fpic  -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector -fno-plt -O2 -ffunction-sections -pipe -I/opt/conda/envs/R-3.6/include -fdebug-prefix-map=/home/builder/ktietz/conda/conda-bld/r-base_1558084822424/work=/usr/local/src/conda/r-base-3.6.0 -fdebug-prefix-map=/opt/conda/envs/R-3.6=/usr/local/src/conda-prefix  -c internal.c -o internal.o
x86_64-conda_cos6-linux-gnu-cc -I"/opt/conda/envs/R-3.6/lib/R/include" -DNDEBUG -I./lib/  -DNDEBUG -D_FORTIFY_SOURCE=2 -O2  -I/opt/conda/envs/R-3.6/include -Wl,-rpath-link,/opt/conda/envs/R-3.6/lib -fvisibility=hidden -fpic  -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector -fno-plt -O2 -ffunction-sections -pipe -I/opt/conda/envs/R-3.6/include -fdebug-prefix-map=/home/builder/ktietz/conda/conda-bld/r-base_1558084822424/work=/usr/local/src/conda/r-base-3.6.0 -fdebug-prefix-map=/opt/conda/envs/R-3.6=/usr/local/src/conda-prefix  -c lib.c -o lib.o
x86_64-conda_cos6-linux-gnu-cc -I"/opt/conda/envs/R-3.6/lib/R/include" -DNDEBUG -I./lib/  -DNDEBUG -D_FORTIFY_SOURCE=2 -O2  -I/opt/conda/envs/R-3.6/include -Wl,-rpath-link,/opt/conda/envs/R-3.6/lib -fvisibility=hidden -fpic  -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector -fno-plt -O2 -ffunction-sections -pipe -I/opt/conda/envs/R-3.6/include -fdebug-prefix-map=/home/builder/ktietz/conda/conda-bld/r-base_1558084822424/work=/usr/local/src/conda/r-base-3.6.0 -fdebug-prefix-map=/opt/conda/envs/R-3.6=/usr/local/src/conda-prefix  -c version.c -o version.o
x86_64-conda_cos6-linux-gnu-cc -shared -L/opt/conda/envs/R-3.6/lib/R/lib -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,-rpath,/opt/conda/envs/R-3.6/lib -Wl,-rpath-link,/opt/conda/envs/R-3.6/lib -L/opt/conda/envs/R-3.6/lib -Wl,-rpath-link,/opt/conda/envs/R-3.6/lib -o rlang.so capture.o export.o internal.o lib.o version.o -L/opt/conda/envs/R-3.6/lib/R/lib -lR
installing to /cc-home/_global_/R/00LOCK-rlang/00new/rlang/libs
** R
** inst
** byte-compile and prepare package for lazy loading
Error in unloadNamespace("rlang") : 
  namespace ‘rlang’ is imported by ‘pillar’, ‘purrr’, ‘forge’, ‘tibble’, ‘ellipsis’, ‘htmltools’, ‘dbplyr’, ‘dplyr’, ‘tidyselect’, ‘sparklyr’ so cannot be unloaded
Execution halted
ERROR: lazy loading failed for package ‘rlang’
* removing ‘/cc-home/_global_/R/rlang’
Warning in install.packages :
  installation of package ‘rlang’ had non-zero exit status

The downloaded source packages are in
	‘/tmp/RtmpL0EJNa/downloaded_packages’

Cause

The installation is failing because in Rprofile file the package sparklyr is loaded and it's loading some of the packages that depends on rlang.

Environment

IBM® Watson Studio Local 2.1 installed on IBM® Cloud Private.

Resolving The Problem

  1. Update Rprofile file in home folder to comment load sparklyr package.
  2. Open file /opt/conda/envs/R-3.6/lib/R/etc/Rprofile.site in terminal and comment load sparklyr package line and then save this file.
  3. Now restart Rsession by using menu: Session->Restart R
  4. Try installing rlang package.
  5. Verify that the package is installed and load this package by selecting checkbox.

Document Location

Worldwide

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSHGWL","label":"IBM Watson Studio Local"},"ARM Category":[{"code":"a8m0z000000GoJJAA0","label":"Admin->Libraries and packages"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
09 April 2021

UID

ibm16239332