How to install KriSp package on R?

Question:

I want to install the following package on R http://user.math.uzh.ch/furrer/software/KriSp/

It is in tar.gz format

I used the following command:

install.packages("~/KriSp_0.4.tar.gz", repos = NULL, type = "source")

When I try to install it, the following message appears:

Warning: invalid package

Error: ERROR: no packages specified

Warning in install.packages

Answer:

To install this package the easiest way is using devtools .

Install devtools using install.packages("devtools") . On Windows, devtools also asks to install RTools which is not a package but another program: http://cran.r-project.org/bin/windows/Rtools/

KriSp appears to have been built on earlier versions of R and does not have a NAMESPACE file in its source code. Therefore, it is necessary to unzip the code, and add this file in the folder. I unzipped it using 7zip and then created a copy of the DESCRIPTION file, renamed it to NAMESPACE and deleted the contents.

Then using the command:

devtools::install_local("caminho para a pasta com o codigo fonte")

Example:

devtools::install_local("C:/Users/daniel/Desktop/KriSp_0.4.tar/KriSp_0.4/KriSp/")

You should be able to install the package.

Scroll to Top