Should I not pass the file name as a string (or better yet w / file.path )? for example install.packages(file.path("geiger_1.3-1.tar.gz"), repos = NULL, type = "source") Remember that when installing packages you need to pass the line to which the libraries are loaded, you can pass a name without quotes (or a string).
Answering your comment here to be able to format
So you wrote install.packages(C:\Rfiles("geiger_1.3-1.tar.gz"), repos = NULL, type = "source") . Remember that the first argument to install.packages must be a character vector. What you went through is C:\Rfiles("geiger_1.3-1.tar.gz") , which is really nothing. Take a look at help(file.path) and help(install.packages) to see some examples of how to specify the path to the file. In this particular case, you should try:
g.path <- file.path("C:", "Rfiles", "geiger_1.3-1.tar.gz") install.packages(g.path, repos = NULL, type = "source")
This (as far as I can tell) is the absolute path to your package, without worrying about the backslash / redirect problem.
source share