| | 202 | |
| | 203 | == Installing Packages into user home directory == |
| | 204 | If you want to use some packages but those aren't installed into the R on Cypress, |
| | 205 | you can install those into your home directory. |
| | 206 | |
| | 207 | First, create a directory and set an environmental variable, |
| | 208 | {{{ |
| | 209 | mkdir -p ~/R/Library |
| | 210 | export R_LIB_USER=/home/USERID/R/Library |
| | 211 | }}} |
| | 212 | The environmental variable R_LIBS_USER points the location of user package. |
| | 213 | Set in ~/.Renviron to tell R a default location, |
| | 214 | {{{ |
| | 215 | echo 'R_LIBS_USER="~/R/Library"' > $HOME/.Renviron |
| | 216 | }}} |
| | 217 | Or use a text editor. |
| | 218 | |
| | 219 | Run R and install a package |
| | 220 | {{{ |
| | 221 | > install.packages("copula",lib="~/R/Library") |
| | 222 | }}} |
| | 223 | |
| | 224 | |