I’ve created a CRAN repository on my server, cran.gforge.se, it used to work like a charm before 2.15.2, but now I get an error complaining that the package doesn’t exist.
My code for installing my Gmisc package:
reps = c("http://ftp.sunet.se/pub/lang/CRAN",
"http://cran.gforge.se")
install.packages("Gmisc", repos=reps, dependencies=TRUE)
This gives the error:
Warning in install.packages : package ‘Gmisc’ is not available (for
R version 2.15.2)
I’ve tried to look at this SO question that seems to be very similar but without any help. The manual is a little scarce on the subject but currently I do the following write_PACKAGES before uploading:
library(tools)
write_PACKAGES("C:\\Software\\cran", verbose=TRUE, subdirs=TRUE, type="win.binary")
write_PACKAGES("C:\\Software\\cran", verbose=TRUE, subdirs=TRUE, type="source")
write_PACKAGES("C:\\Software\\cran\\src\\contrib", verbose=TRUE, subdirs=TRUE)
write_PACKAGES("C:\\Software\\cran\\bin\\windows\\contrib\\2.15", verbose=TRUE, subdirs=TRUE, type="win.binary")
write_PACKAGES("C:\\Software\\cran\\src\\contrib\\2.15", verbose=TRUE, subdirs=TRUE, type="source")
I’ve also tried the suggested solution in this SO question:
options(install.packages.check.source = FALSE)
install.packages("Gmisc", repos=reps, dependencies=TRUE)
Since I have a parallel source code, this shouldn’t be a problem or have I missed something?
Could you try and put
Gmisc_3.5.tar.gzinto/src/contriband then executeinstall.packages("Gmisc", repos="http://cran.gforge.se", type="source")?