Closed wfmackey closed 5 years ago
Also fails on my machine:
remotes::install_github("hughparsonage/grattan", dependencies = TRUE)
fails with error:
Error: Failed to install 'grattan' from GitHub: (converted from warning) unable to access index for repository https://hughparsonage.github.io/tax-drat/bin/macosx/el-capitan/contrib/3.6: cannot open URL 'https://hughparsonage.github.io/tax-drat/bin/macosx/el-capitan/contrib/3.6/PACKAGES'
Does
remotes::install_github("hughparsonage/grattan", dependencies = NA, type = "source", upgrade = "never")
work?
That failed several times at various points. Once I'd manually installed various dependencies (with install.packages("future")
etc.) it then worked. I'll try on a fresh R install.
Looks like a bug in remotes
On Tue, 27 Aug 2019 at 8:58 am, Matt Cowgill notifications@github.com wrote:
That failed several times at various points. Once I'd manually installed various dependencies (with install.packages("future") etc.) it then worked. I'll try on a fresh R install.
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/HughParsonage/grattan/issues/195?email_source=notifications&email_token=AB54MDHMRF3WA7CYSTWDYJDQGRNYNA5CNFSM4IPMAVC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5F5W3Y#issuecomment-525065071, or mute the thread https://github.com/notifications/unsubscribe-auth/AB54MDECQSUZLJBODCWNPR3QGRNYNANCNFSM4IPMAVCQ .
I tried a fresh install on a Windows 10 VM. Same issue - it failed (after about 40 minutes) trying to install a dependency (in this case RCurl).
What was the error message? I can't reproduce on any platform.
FWIW it's not an issue with the grattan package but with the logic of installing dependencies.
What about
install.packages("grattan") remote::install_packages("grattan", upgrade = "never")
On Tue, 27 Aug 2019 at 11:10, Matt Cowgill notifications@github.com wrote:
I tried a fresh install on a Windows 10 VM. Same issue - it failed (after about 40 minutes) trying to install a dependency (in this case RCurl).
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/HughParsonage/grattan/issues/195?email_source=notifications&email_token=AB54MDHTPCTAD7ULRRC6H73QGR5JHA5CNFSM4IPMAVC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5GERSY#issuecomment-525093067, or mute the thread https://github.com/notifications/unsubscribe-auth/AB54MDEHKHE3O3TT5DUR3IDQGR5JHANCNFSM4IPMAVCQ .
This was the error:
I think did:
install.packages("RCurl")
and repeated:
remotes::install_github("hughparsonage/grattan", dependencies = NA, type = "source", upgrade = "never")
and it worked
OK. The issue is that XML has a libxml2 SystemsRequirements which appears to have been absent on that platform. So you need to install the win.binary or mac.binary version. But if you request a binary on Mac, remotes only looks for mac binaries throughout the tail of dependencies and there is no taxstats mac binary.
IMO remotes should fall back to a source installation if it's available and doesn't require compilation, though packages in AdditionalRepositories appears to be a corner case.
On Tue, 27 Aug 2019 at 11:24, Matt Cowgill notifications@github.com wrote:
This was the error: [image: Screen Shot 2019-08-27 at 10 36 58 am] https://user-images.githubusercontent.com/8002951/63733773-0df45000-c8bd-11e9-8de5-02ba443752c6.png
I think did: install.packages("RCurl")
and repeated:
remotes::install_github("hughparsonage/grattan", dependencies = NA, type = "source", upgrade = "never")
and it worked
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/HughParsonage/grattan/issues/195?email_source=notifications&email_token=AB54MDG6KL6CE5P5O3Q4ZWDQGR63FA5CNFSM4IPMAVC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5GFGKY#issuecomment-525095723, or mute the thread https://github.com/notifications/unsubscribe-auth/AB54MDAPEGXEKTYFH4WELT3QGR63FANCNFSM4IPMAVCQ .
To summarize, to install from GitHub, first install from CRAN then attempt a dependency-less install with no upgrades. That way, there is no attempt by remotes
to install Suggested dependencies, in particular taxstats
for which the binary not available for Mac.
Did you manage to install it?
In your opinion, do I need to change anything to fix the issue?
yes, it’s working, so I’ll close the issue. In the medium term we’ll try to think of ways to streamline some of the functions and make installation less heavy
The
grattan
package is failing to install on a system that has not previously installed the package:The package is also failing to update the package on a system that had it installed, with the same warning: