How to install RGeostats package?

How to use RGeostats package step-by-step.
Direct access to Tutorial index and Frequently Asked Questions

How to install RGeostats package?

Postby Nicolas Desassis » Fri Sep 21, 2012 4:08 pm

After downloading our latest RGeostats package according your operating system - OR -
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).

InstallRgeostats.png
InstallRgeostats.png (114.35 KiB) Viewed 8020 times


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 :
Nicolas Desassis
 
Posts: 198
Joined: Thu Sep 20, 2012 4:22 pm

Return to Tutorials and FAQ

Who is online

Users browsing this forum: No registered users and 3 guests

cron