Unable to install package caret on RStudio Cloud

Greetings,

I am not able to install the caret package on RStudion cloud, I used the code below.


	install.packages("caret", dependencies=c("Depends", "Suggests"))

Below is the portion of the error message.

ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/backports’
Warning in install.packages :
installation of package ‘backports’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/assertthat’
Warning in install.packages :
installation of package ‘assertthat’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/lifecycle’
Warning in install.packages :
installation of package ‘lifecycle’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/ellipsis’

I can't reproduce your issue, on a new project with R 4.0.0 install.packages("caret") installs successfully, Can you show your whole error message? Also, sharing your project's ID might be useful for RStudio people to check if there is something wrong on their side regarding your specific project.

Thank you, Andrés.
Please find the project link and error message below.

Project Link: https://rstudio.cloud/project/1378372

Error Message:

ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/mitml’
Warning in install.packages :
installation of package ‘mitml’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/rgl’
Warning in install.packages :
installation of package ‘rgl’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/systemfit’
Warning in install.packages :
installation of package ‘systemfit’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/roxygen2’
Warning in install.packages :
installation of package ‘roxygen2’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/foghorn’
Warning in install.packages :
installation of package ‘foghorn’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/pkgdown’
Warning in install.packages :
installation of package ‘pkgdown’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/rhub’
Warning in install.packages :
installation of package ‘rhub’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/forcats’
Warning in install.packages :
installation of package ‘forcats’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/AER’
Warning in install.packages :
installation of package ‘AER’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/network’
Warning in install.packages :
installation of package ‘network’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/tseries’
Warning in install.packages :
installation of package ‘tseries’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/bench’
Warning in install.packages :
installation of package ‘bench’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/nycflights13’
Warning in install.packages :
installation of package ‘nycflights13’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/ggplot2’
Warning in install.packages :
installation of package ‘ggplot2’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/MLmetrics’
Warning in install.packages :
installation of package ‘MLmetrics’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/party’
Warning in install.packages :
installation of package ‘party’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/testthat’
Warning in install.packages :
installation of package ‘testthat’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/dplyr’
Warning in install.packages :
installation of package ‘dplyr’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/concaveman’
Warning in install.packages :
installation of package ‘concaveman’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/viridis’
Warning in install.packages :
installation of package ‘viridis’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/alphahull’
Warning in install.packages :
installation of package ‘alphahull’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/ggforce’
Warning in install.packages :
installation of package ‘ggforce’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/intergraph’
Warning in install.packages :
installation of package ‘intergraph’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/dfidx’
Warning in install.packages :
installation of package ‘dfidx’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/alphashape3d’
Warning in install.packages :
installation of package ‘alphashape3d’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/ggthemes’
Warning in install.packages :
installation of package ‘ggthemes’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/GGally’
Warning in install.packages :
installation of package ‘GGally’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/shinytest’
Warning in install.packages :
installation of package ‘shinytest’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/patchwork’
Warning in install.packages :
installation of package ‘patchwork’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/forecast’
Warning in install.packages :
installation of package ‘forecast’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/sampleSelection’
Warning in install.packages :
installation of package ‘sampleSelection’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/sna’
Warning in install.packages :
installation of package ‘sna’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/networkDynamic’
Warning in install.packages :
installation of package ‘networkDynamic’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/AmesHousing’
Warning in install.packages :
installation of package ‘AmesHousing’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/lintr’
Warning in install.packages :
installation of package ‘lintr’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/mockery’
Warning in install.packages :
installation of package ‘mockery’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/ggbeeswarm’
Warning in install.packages :
installation of package ‘ggbeeswarm’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/ggridges’
Warning in install.packages :
installation of package ‘ggridges’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/tidyr’
Warning in install.packages :
installation of package ‘tidyr’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/ergm’
Warning in install.packages :
installation of package ‘ergm’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/rstan’
Warning in install.packages :
installation of package ‘rstan’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/varImp’
Warning in install.packages :
installation of package ‘varImp’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/devtools’
Warning in install.packages :
installation of package ‘devtools’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/dbplyr’
Warning in install.packages :
installation of package ‘dbplyr’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/Lahman’
Warning in install.packages :
installation of package ‘Lahman’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/biclust’
Warning in install.packages :
installation of package ‘biclust’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/dendextend’
Warning in install.packages :
installation of package ‘dendextend’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/leaflet’
Warning in install.packages :
installation of package ‘leaflet’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/mlogit’
Warning in install.packages :
installation of package ‘mlogit’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/xergm.common’
Warning in install.packages :
installation of package ‘xergm.common’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/latentnet’
Warning in install.packages :
installation of package ‘latentnet’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/tergm’
Warning in install.packages :
installation of package ‘tergm’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/ergm.count’
Warning in install.packages :
installation of package ‘ergm.count’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/ergm.userterms’
Warning in install.packages :
installation of package ‘ergm.userterms’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/recipes’
Warning in install.packages :
installation of package ‘recipes’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/bayesplot’
Warning in install.packages :
installation of package ‘bayesplot’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/plotly’
Warning in install.packages :
installation of package ‘plotly’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/rsample’
Warning in install.packages :
installation of package ‘rsample’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/Hmisc’
Warning in install.packages :
installation of package ‘Hmisc’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/vdiffr’
Warning in install.packages :
installation of package ‘vdiffr’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/broom’
Warning in install.packages :
installation of package ‘broom’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/seriation’
Warning in install.packages :
installation of package ‘seriation’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/shinystan’
Warning in install.packages :
installation of package ‘shinystan’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/rms’
Warning in install.packages :
installation of package ‘rms’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/mice’
Warning in install.packages :
installation of package ‘mice’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/btergm’
Warning in install.packages :
installation of package ‘btergm’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/geepack’
Warning in install.packages :
installation of package ‘geepack’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/caret’
Warning in install.packages :
installation of package ‘caret’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/heatmaply’
Warning in install.packages :
installation of package ‘heatmaply’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/DendSer’
Warning in install.packages :
installation of package ‘DendSer’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/miceadds’
Warning in install.packages :
installation of package ‘miceadds’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/brms’
Warning in install.packages :
installation of package ‘brms’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/rstanarm’
Warning in install.packages :
installation of package ‘rstanarm’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/BIFIEsurvey’
Warning in install.packages :
installation of package ‘BIFIEsurvey’ had non-zero exit status
ERROR: unable to create ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/mdmb’
Warning in install.packages :
installation of package ‘mdmb’ had non-zero exit status

I've taken a look at your project and it seems you have installed too many packages and you have no disk space left. I recommend you start with a new project and installing only the packages you need for your specific task.

s.RData': No space left on device

Hi Andrés,

I manage to install Caret, thank you.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.