-
Notifications
You must be signed in to change notification settings - Fork 43
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
makeRepo error for mac.binary.mavericks #11
Comments
I found a fix by changing the last lines of code in the makeRepo function in makeRepo.R from if(download) download.packages(pkgs, destdir=pkgPath, repos=repos, type=type) to if(download) download.packages(pkgs, destdir=pkgPath, repos=repos, type=type) |
This is possibly related to |
Could it be simpler than that? It seems that write_PACKAGES does not have mac.binary.mavericks as a type option and so it cannot write the PACKAGES file. Everything else works fine. It is just the PACKAGES files that are not produced. |
Possibly. But I can't test it using R-3.0 because the mavericks binaries exist only for R-3.1 and up. So there is an even deeper underlying problem. Regardless, can you please test the following:
|
I am running R-3.1.1 and get the expected results. See attached. I will distribute my own app (Radiant) to students through a read-only dropbox folder with fall and It took me a while to figure out how to install from the local repo. Attached what I came up with. If there is an easier/better way to do this I would love to hear about it. Perhaps an example in the vignette would be useful to others? Again, great package. I expect it will save me a lot of headaches with 200 students using Radiant in a few weeks. Vincent From: Andrie <[email protected]mailto:[email protected]> Possibly. But I can't test it using R-3.0 because the mavericks binaries exist only for R-3.1 and up. So there is an even deeper underlying problem. Regardless, can you please test the following:
—
|
I have a slideshare presentation at http://www.slideshare.net/RevolutionAnalytics/through-the-firewall-with-minicran that explains how to refer to your local repo. The trick is to use I hope this helps. Thank you for trying the package and reporting what you find. I'll include additional help and documentation in the next few days. |
Thanks @andrie. That does help. Is it possible to add the one line of code to makeRepo.R? if(type == "mac.binary.mavericks") type <- "mac.binary" |
@mostly-harmless Can you please contact me via email? You can find my contact details in the maintainer field of the package DESCRIPTION. I am keen to resolve this issue, but I need to find a reliable way to test. You can help with that. I wrote some additional unit tests and I need to see the test results on a mac. Thanks in advance. |
@mostly-harmless I have now fixed this issue in a more general way in the development branch. Please let me know if this works for you. |
Thanks for the update @andrie. Everything seems to work fine except for mavericks. The directory structure is created but the PACKAGES files are not. See message below: pkgList <- pkgDep(pkgs, repos=repos, type="mac.binary.mavericks", suggests = FALSE) Error in match.arg(type) :
locale: attached base packages: other attached packages: loaded via a namespace (and not attached): From: Andrie <[email protected]mailto:[email protected]> @mostly-harmlesshttps://github.com/mostly-harmless I have now fixed this issue in a more general way in the development branch. Please let me know if this works for you. — |
@mostly-harmless That still looks like the error in the master branch. Did you install from the dev branch? |
I guess I must have done something wrong the first time (I used ref = “dev” initially). I uninstalled and restarted R. Then ran the code below and the PACKAGES files are created. The final thing printed is now. [[1]] Thanks!! Question: Is there a way in miniCRAN to add-in packages built using devtools::install_github()? For example, most of the packages I use are from CRAN but some (e.g., ggvis or rvest) may not be or the version on CRAN is older.
From: Andrie <[email protected]mailto:[email protected]> @mostly-harmlesshttps://github.com/mostly-harmless That still looks like the error in the master branch. Did you install from the dev branch? — |
@mostly-harmless You asked:
I opened a new issue #50 to track this. I'd like to have this functionality in due course. |
Great package @andrie !
I have been trying to create a miniCRAN repo for mavericks. When I use makeRepo, however, I get the following error:
Error in match.arg(type) :
'arg' should be one of “source”, “mac.binary”, “win.binary”
From the install.packages help file: Possible values are (currently) "source", "mac.binary", "mac.binary.mavericks" and "win.binary"
mac.binary.mavericks files are collected but the PACKAGES files is not. This is probably an issue in write_PACKAGES but I couldn't see how to fix it.
The text was updated successfully, but these errors were encountered: