-
Notifications
You must be signed in to change notification settings - Fork 16
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
make vol2birdR
suggested
#565
Conversation
It seems there are locally still some error but they seem unrelated to this push |
Codecov Report
@@ Coverage Diff @@
## master #565 +/- ##
==========================================
- Coverage 67.89% 67.80% -0.09%
==========================================
Files 58 58
Lines 3152 3165 +13
==========================================
+ Hits 2140 2146 +6
- Misses 1012 1019 +7
|
I would like @adokter and/or @iskandari to review this as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
current behavior expects the package to be on CRAN. As long that is not the case, we should have a more informative message, and preferably trigger a devtools::github_install action
Installation instructions are now with `check_installed`
Remarks should now be resolved (actually the devel tests now seems fast now) |
@bart1 on Linux and Mac, vol2birdR requires certain system requirements to be installed prior to installing the package form R. If we give the simple Some options:
Thoughts? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we'll need to warn for required system dependencies for vol2birdR on linux and Mac, and avoid people install without having those present.
Sounds like a valid concern, this is off course an issue for more packages relying on system libraries. The situation is also a bit more complex as more linux precompiled packages come available. I will have to do some research what are common solutions |
All this checks and the message to return are best wrapped up in a helper function |
I have been thinking a bit more about this. I guess generally system requirements are kind strangely handled in R and it would be hard to completely fix this. There would be two distinct routes of installing that would pose the problem at a different time. Either you would install from source or from a binary (more common now there is the posit repository). For compiling from source you would need to have all Now for the two installation routes:
> rlang::check_installed("keyring")
ℹ The package "keyring" is required.
✖ Would you like to install it?
1: Yes
2: No
Selection: 1
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
also installing the dependencies ‘sodium’, ‘filelock’
trying URL 'https://packagemanager.posit.co/cran/__linux__/jammy/latest/src/contrib/sodium_1.2.1.tar.gz'
Content type 'binary/octet-stream' length 500113 bytes (488 KB)
==================================================
downloaded 488 KB
trying URL 'https://packagemanager.posit.co/cran/__linux__/jammy/latest/src/contrib/filelock_1.0.2.tar.gz'
Content type 'binary/octet-stream' length 21806 bytes (21 KB)
==================================================
downloaded 21 KB
trying URL 'https://packagemanager.posit.co/cran/__linux__/jammy/latest/src/contrib/keyring_1.3.1.tar.gz'
Content type 'binary/octet-stream' length 351860 bytes (343 KB)
==================================================
downloaded 343 KB
* installing *binary* package ‘sodium’ ...
* DONE (sodium)
* installing *binary* package ‘filelock’ ...
* DONE (filelock)
* installing *binary* package ‘keyring’ ...
* DONE (keyring)
The downloaded source packages are in
‘/tmp/RtmpVtYP9k/downloaded_packages’
> require(keyring)
Loading required package: keyring
Error: package or namespace load failed for ‘keyring’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/usr/local/lib/R/site-library/keyring/libs/keyring.so':
libsecret-1.so.0: cannot open shared object file: No such file or directory I do not think there is a complete solution. Maybe a message like : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now there should be an informative message about system requirements
…mpiled binary available
@adokter does OSX on intel not need the system libraries installed for precompiled binaries? Good to know, that is different from linux |
Let me test that before we merge this |
@bart1 seems to work without having any system libraries installed, except I do get an annoying warning message with the pre-installed binary (which does not disappear when installing the system libraries), see adokter/vol2birdR#50. Do you know if CRAN has plans to provide M1 mac and linux binaries? I only see Windows and intel mac binaries offered here |
@adokter I'm not sure cran is planning binaries for linux, I don't think so, but I use those at POSIT for fast creation of docker containers. As for OSX I do not really keep up with that. |
I also directly removed the remote for vol2birdR |
This should resolve #557