New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dependencies from non-cran sources? #2
Comments
sure thing - point me at a package? |
(To be clear, you can't yet but it'd just be a case of expanding this function and the template -- I just implemented a set sufficient for my needs) |
how about like this: https://github.com/ropensci/RNeXML/blob/master/DESCRIPTION#L20-21 |
Do you know R's logic for looking for packages in the different repos? (e.g., the logic that would be used by |
I would just add that list to the |
Sorry, I'm being dense here. Does the actual call to install.packages look like
or two calls
Basically: where is the logic that says "this package comes from this repo" - is that done automagically in |
I think the ideal call concatenates the full package list and a full repo list, including a cran repo, like so: install.packages(c("ape", "rrdf"), repos=c("http://cran.rstudio.com", "http://www.omegahat.org/R")) The others would work most of the time, but could fail if the non-cran repo has cran-based dependencies. I believe |
OK, great. I'll look for that field at set up the call like above provided I can get the arguments passed through to |
@richfitz oh right, looks like I had intended to get that into |
I was just going to go via |
Have you guys looked at drat ? I now think of its |
OK, this is largely done now. If you have rrdf installed it should pick up all system dependencies (but this needs more tweaking - @gaborcsardi has pointed me in the right direction to do this without relying on installed packages via crandb). Otherwise make a file in the package root system_ignore_packages:
- animation
system:
- default-jre
- default-jdk which will organise installing rJava (rrdf depends on this, rJava requires system deps, etc, etc). Then Generated Dockerfile that I get
@eddelbuettel - I've not looked at drat much yet, though it did look interesting. I think the dependency management problem has reached the point where more sophisticated tools are needed and if drat helps there then, that will be excellent. |
The crash is in comparative analyses:
So presumably I've somehow generated a broken RCurl? |
And solved, ish. Adding the Omegahat repo to the search list installed RCurl from there, and that crashes. It's a different version to the CRAN version. I get a 403 on the validate command, but I've been getting them all over the show today because our network is currently flaking out as well as being slow. |
Can you specify dependencies from other standard R repositories as well? (Or more ideally, just extract the repositories URLs from the AdditionalRepositories list of the DESCRIPTION file)
The text was updated successfully, but these errors were encountered: