Stable version from the CRAN
The stable version of the package is available on CRAN servers, which
means that you can install it with the regular
install.packages()
function.
install.packages("icosa")
If for some reason, the installlation from CRAN fails, you might need to look into alternative methods.
Alternative methods
Stable version from Zenodo (source)
For the sake of completeness and simplicity, the sources of the
stable version are also available on GitHub. The
install.packages()
function can be used to install this
from source - but you will have to install dependencies of the package,
and you have to have a compiler installed on your system!
install.packages(
"https://zenodo.org/records/16992403/files/icosa_0.12.0.tar.gz?download=1",
repos=NULL, type="source")
Development version
If you encounter technical problems with the package that are not described anywhere, you might want to take a look at the development version. Note that you will still need to have a compiler installed!
Development version using devtools
The simplest way to install the in-development version is via the
devtools
package. You just have to indicate that you want
to install from the in-development devel
branch.
devtools::install_github("icosa-grid/R-icosa@devel")
Manual install
You can also the install the package manually with the following steps:
- Clone the repository to your local hard drive.
- Make sure that you have the package dependencies, and a compiler
installed: on Windows, RTools should
include all the tools you need, on Mac, you will need to have XCode - if you use
GNU/Linux, you have to go down deeper in the rabbit hole :).
- Open a terminal and navigate to the directory where you cloned. The
icosa
directory should be visible from there.
- Run this line in the terminal
R CMD INSTALL icosa
-
If you see an error suggesting that
R
is not found, you have to add it to yourPATH
environmental variable.
- If the R packages that
icosa
depend on are not installed, you have to install them manually, or you will get an error.