Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upwrite_PACKAGES and archive/pruneRepo work on different paths for mac.binary #88
Comments
|
Nice analysis! And totally agree that we should discuss this, and then hopefully clean it up.
Excellent question. Possibly via a contributed extension that was unaware the earlier function.
That is probably also a like issue with the Looking http://cloud.r-project.org/bin/macosx/ suggests all sorts of subdirectories:
Maybe we can draw a line and redefine for 4.0? |
|
I had a look at the structure on CRAN as well. I think this might reflect the tool chains used in the past for macOS. Can you confirm this output:
The last output is platform specific, since it resolves the type with However, for
So the question is how can the os flavour be extracted from a mac binary file to get Would a simple |
|
So my guess would be that a simple @eddelbuettel: Do you agree? edit: for testing purposes PR was submitted. |
|
It's complicated. Should we detect the OS from the users system? What happens if I (on Linux) try to The "structure" above looks fine from eye-balling. But I don't have a mac so not sure how much my eye-balling matters... |
|
I also noticed, that In any event the whole thing must match accross all functions (insert/archive/prune). Otherwise, there is no point. I prepare any additional commit for what I have in mind. |
Completely agree. That would be the ideal behavior. I think we also have that for source |
|
Well, there is not version identifier for source, so I guess, that isn't affected, is it? |
|
That was a tongue-in-cheek joke. There is only one structure for sources on CRAN repos. |
|
I added a wrapper for |
|
Taken care of on #89 |
Hi,
I encountered the following situation:
drat::insertPackage("package_0.2.11.tgz","~/repo")worksdrat::insertPackage("package_0.2.12.tgz","~/repo", action="archive")reports the following errorThis originates in
pruneRepoviaarchiveRepo. The reason for this is that, the package binary gets written tobin/macosx/el-capitan/contrib/3.6/, but the pruning is trying to work onbin/macosx/contrib/3.6.Before preparing a PR, I think this needs to be discussed, for me to understand the differences, since I am new to the inner workings of the repo structure R expects.
My initial starting question was: Why was the wheel reinvented using the the function
getPathForPackageininsertPackage, whencontrib.urlis already available and used inpruneRepo?drat/R/insertPackage.R
Line 97 in 12e03ee
and the next line could also be written as
contrib.url(repodir, type = pkgtype)and probably solve the issue. Answer: Theel-capitansubdir is there for a reason.So the real starting question is: For what reason is the
el-capitansubdir required and when does R expects it to be present?Thanks for any advice and hints in advance.
SessionInfo