rstanarm icon indicating copy to clipboard operation
rstanarm copied to clipboard

Cannot install in Google Notebook instance

Open mbac opened this issue 4 years ago • 1 comments
trafficstars

Hi!

I can’t manage to install rstanarm in a Google Notebook instance (running R 4.0.5 in Jupyter Lab 3.1.0).

The console kernel just hangs few seconds after I run:

remotes::install_github("stan-dev/rstanarm", verbose = TRUE)

Downloading GitHub repo stan-dev/rstanarm@HEAD


✔  checking for file ‘/tmp/RtmpnweMAR/remotesbe1412f8ece/stan-dev-rstanarm-45e0707/DESCRIPTION’
─  preparing ‘rstanarm’:
✔  checking DESCRIPTION meta-information
─  cleaning src
─  running ‘cleanup’
─  checking for LF line-endings in source and make files and shell scripts (5.7s)
─  checking for empty or unneeded directories
─  building ‘rstanarm_2.21.2.tar.gz’
   

Installing package into ‘/home/jupyter/.R/library’
(as ‘lib’ is unspecified)

system (cmd0): /usr/lib/R/bin/R CMD INSTALL

No error/warning messages, just hangs. The VM should be relatively fast with 8 CPU cores and 32 GB of RAM.

Can you please help me troubleshoot?

mbac avatar Jun 01 '21 22:06 mbac

The installation of rstanarm from source can take a good deal of time, since multiple models need to be compiled.

Can you try installing using multiple cores:

Sys.setenv(MAKEFLAGS = "-j6")

remotes::install_github("stan-dev/rstanarm", verbose = TRUE)

And then monitoring the CPU and RAM usage of the VM to see if the installation is processing?

andrjohns avatar Jun 02 '21 04:06 andrjohns