-
Notifications
You must be signed in to change notification settings - Fork 0
Install R Packages
Kevin M. Smith edited this page Mar 2, 2019
·
9 revisions
Start a fresh R session. On Ubuntu, you can begin an R session by simply typing R
in a terminal session.
R
You should get a response similar to:
R version 3.0.2 (2013-09-25) -- "Frisbee Sailing"
Copyright (C) 2013 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
>
Now type after the >
prompt type:
install.packages("devtools")
The process may begin automatically, but if your CRAN mirror is not set, then you will see something like:
--- Please select a CRAN mirror for use in this session ---
CRAN mirror
1: 0-Cloud 2: Argentina (La Plata)
3: Australia (Canberra) 4: Australia (Melbourne)
5: Austria 6: Belgium
...
97: USA (TN) 98: USA (TX 1)
99: USA (WA 1) 100: USA (WA 2)
101: Venezuela 102: Vietnam
Selection:
Type the number corresponding to the selection appropriate to your locale and hit enter. When the process completes, type:
library(devtools)
install_github("Kevin-M-Smith/pryr")
install_github("Kevin-M-Smith/nwisnfie")
- Download ncdf4_1.9.tar.gz
- Open a fresh R session. Follow the Packages menu to "Install Packages from Local Zip File" and select ncdf4_1.9.tar.gz.
- Refer to Ubuntu instructions above to complete R package installation.