Displaying 1 result from an estimated 1 matches for "cvknn".
2004 Dec 31
4
install.packages() for local source file
...way?
And isn't this a bug in 'install.packages'?
-------
$ R
R : Copyright 2004, The R Foundation for Statistical Computing
Version 1.9.0 (2004-04-12), ISBN 3-900051-00-3
> file.pkg <- "mypkg_0.1.tar.gz"
> path.pkg <- file.path(path.expand("~"), "cvknn", file.pkg)
> file.exists(path.pkg)
[1] TRUE
> uri.pkg <- paste("file://", path.pkg, sep = "")
> install.packages(contriburl = uri.pkg, lib = Sys.getenv("R_LIBS"))
Error in file.info(x) : Object "tmpd" not found
> traceback()
4: file.info(...