An alternative answer to Daniel’s, without using the devtools
.
First you have to install the package dependencies (the other packages of which the KriSp
depends on):
install.packages(c("fields","SparseM"), repos = "http://cran.r-project.org")
Then you download the file and have it installed as type "source"
because it is not in binary format:
install.packages("KriSp_0.4.tar.gz", repos = NULL, type = "source")
However, as Daniel said, since this package was made at a time when there was no NAMESPACE, if you try this in recent versions of R you will have problems.
NAMESPACE roughly says which functions you will export to the user in the global environment, which functions you will not export, which packages or functions of other packages you will import etc. Then you can do the following: unzip the Krisp folder from within tar and create a plain text file called NAMESPACE with the following content.
exportPattern("^[^\\.]")
You’re basically having all functions exported that don’t start with a dot. Now just have it installed by "source" again, but this time putting the name of the folder and not the name of tar.
install.packages("KriSp", repos = NULL, type = "source")
I just tested it here and it worked. However, just because you installed it doesn’t mean it’s okay, so it’s worth noting that this package may be full of compatibility issues, since it hasn’t been serviced for a long time.
Put the command you used before giving this error message.
– Carlos Cinelli