After downloading our latest R2I package according your operating system...
This Post is quite general (although it has been written explicitly for RGeostats package): it can also serve for other packages that can be downloaded from this site (such as R2I) or (Rcpp).
RStudio
In the "Packages" tab, click on "Install" button, then use:
- the option Install from: "Package Archive File (.tar.gz)" and select the RGeostats archive file you downloaded - OR -
- the option "Repository CRAN" and select the CRAN package you want (i.e. Rcpp).
Known caveat:
If the install option from "Package Archive File" fails, you may have to modify some arguments of the install.packages command generated by RStudio and use:
- Code: Select all
install.packages("/path/to/RGeostats_X.Y.Z.tar.gz", repos=NULL, type="binary")
Without RStudio
Linux
Assume that the RGeostats v10.0.0 tarball package has been downloaded in the /tmp directory.
Open a shell command line, then:
With root access:
Simply execute this command:
- Code: Select all
R CMD INSTALL /tmp/RGeostats_10.0.0_linux64.tar.gz
Without root access:
You will need to store your R packages in a directory where you have write permission access ($HOME/RPackages for example)
Then execute this command:
- Code: Select all
mkdir -p $HOME/RPackages
R CMD INSTALL /tmp/RGeostats_10.0.0_linux64.tar.gz -l $HOME/RPackages
Mac
Assume that the RGeostats v10.0.0 tarball package has been downloaded in the /tmp directory.
Open a Terminal (Application / Utilities), then :
With root access:
Simply execute this command:
- Code: Select all
R CMD INSTALL /tmp/RGeostats_10.0.0_macosx.tgz
Without root access:
You will need to store your R packages in a directory where you have write permission access ($HOME/RPackages for example)
Then execute this command:
- Code: Select all
mkdir -p $HOME/RPackages
R CMD INSTALL /tmp/RGeostats_10.0.0_macosx.tgz -l $HOME/RPackages
Windows
- Launch R (RGui.exe)
- Click on the "Packages" top menu
- Click on the "Install package(s) from local zip files...
- Select the downloaded RGeostats zip file and click "Open"
> utils:::menuInstallLocal()
package ‘RGeostats’ successfully unpacked and MD5 sums checked
Then you must :
- load RGeostats package - OR -
- load R2I package