Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I install R packages on the SageMaker Notebook instance?

I tried to start a R notebook in Sagemaker and I typed

install.packages("disk.frame")

and it gave me the error

also installing the dependencies ‘listenv’, ‘dplyr’, ‘rlang’, ‘furrr’, 
‘future.apply’, ‘fs’, ‘pryr’, ‘fst’, ‘globals’, ‘future’

Warning message in install.packages("disk.frame"):
“installation of package ‘rlang’ had non-zero exit status”
Warning message in install.packages("disk.frame"):
“installation of package ‘fs’ had non-zero exit status”
Warning message in install.packages("disk.frame"):
“installation of package ‘pryr’ had non-zero exit status”
Warning message in install.packages("disk.frame"):
“installation of package ‘fst’ had non-zero exit status”
Warning message in install.packages("disk.frame"):
“installation of package ‘dplyr’ had non-zero exit status”
Warning message in install.packages("disk.frame"):
“installation of package ‘disk.frame’ had non-zero exit status”
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done

How do I install R packages on Sagemaker?

like image 923
xiaodai Avatar asked Sep 16 '25 23:09

xiaodai


1 Answers

Thank you for using Amazon SageMaker.

This issue has been resolved and you should be able to install R packages using

install.packages("disk.frame")

or

install.packages("disk.frame", repo="https://cran.rstudio.com/")

I tested it and was able to successfully install the package with ouput

also installing the dependencies ‘listenv’, ‘benchmarkmeData’, ‘doParallel’, ‘bigassertr’, ‘bit’, ‘dplyr’, ‘rlang’, ‘furrr’, ‘future.apply’, ‘fs’, ‘pryr’, ‘fst’, ‘globals’, ‘future’, ‘benchmarkme’, ‘bigreadr’, ‘bit64’

Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
like image 139
Zain Aziz Avatar answered Sep 18 '25 17:09

Zain Aziz