In this post, I will write how to install the splits package.
The easiest way to install the splits is to use install.packages. For Windows and Linux, just type on your R console,
This command will automatically download the package from R-forge site and install it to your machine. (Note that R-forge only retains packages for recent versions of R. If you see error messages about R version on installation, check if your R is the latest version.)
For MacOS, the command is slightly different.
>install.packages(“splits”, repos=”http://R-Forge.R-project.org“, type=”source”)
This installs the package from the source code instead of installing from binary package. (The R-forge does not provide binary packages for MacOS.) Some users reported that the command does not work on the Mac R console. In that case, you may need to start R from Terminal and run the install.packages command on it.
You may need to install packages the splits depends on, ape, MASS and paran, before installing splits. You can also use install.packages to install them, but now from the default CRAN repository.
“dependencies” is set as TRUE to make sure that further dependencies of packages will be resolved.
Once the splits is installed, you can load it by calling library function.
If you see messages like below, the package was successfully installed.
Loading required package: ape
Loading required package: MASS
Loading required package: paran
If your network connects to the internet via proxy servers, you need to set the proxy to make install.packages work. This is usually done by setting an environmental variable on terminal in Unix like environment (and probably in Mac).
Please consult your network administrator if you don not know the name or port of your proxy server. In Windows, you need to run R from Command prompt with a special option,
If this command does not solve proxy issues, you may need to modify LAN settings in Internet Options.