An alternative response to Daniel, without using devtools
.
First you have to install the dependencies of the package (the other packages that% depends on):
install.packages(c("fields","SparseM"), repos = "http://cran.r-project.org")
Then you download the file and have it installed as type KriSp
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 on recent versions of R it will have problems.
NAMESPACE, roughly speaking, says which functions you will export to the user in the global environment, what functions will you not export, what packages or functions of other packages will you import etc . Then you can do the following: unpack the KriSp folder from within the tar and create a simple text file called NAMESPACE with the following content.
exportPattern("^[^\.]")
You are basically having to export all functions that do not start with dot. Now you just have to install by source again, but this time putting the name of the folder and not the name of the tar.
install.packages("KriSp", repos = NULL, type = "source")
I just tested here and it worked. However, just because it is installed does not mean that it is ok, so it is worth noting that this package may be full of compatibility issues, since it has not been maintained for a long time.