-
Notifications
You must be signed in to change notification settings - Fork 62
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
Operator invalid for atomic vectors, r$version #474
Comments
Can you show a reproducible example? E.g. is the package you are experiencing this with public? |
Hi! The problem is that the package this is occurring with is proprietary... I can try to debug it to see if I can get more information, to see if it is possible to build a minimal reproducible example. Is it possible to access older versions of the devel prebuilts? |
Yes, with a bit of work. Go to https://github.com/r-lib/pak/blob/a5c1a8408ca93f8ef757b1aca5dd5fca14cb0fba/manifest.json (this is yesterday's version) and look for the sha of the R platform and R version you need. Once you have the sha you can download the package like this, with command line curl:
If you are on macOS name the output file
or from R:
WRT reproducing this, is it OK to show the dependencies of your package? E.g. the output of
|
Thanks, then I can probably solve my immediate issue. I have managed to narrow down the problem a bit. The issue is that when I arrive at this line https://github.com/r-lib/pkgdepends/blob/bd4b34097fe15f7905d2c97c001a21eb13903996/R/solve.R#L470, some of What are the implications of remote being NA here? Is it something that is expected to happen or is it something that is off? I am not sure I can post all the dependencies here, maybe I could send you a list in private? It is also a bit strange, since I get the error on some computers but not all. |
I don't think |
Re dependencies, sure, it is file in private as well. |
What is your OS and R version? |
I sent you an email with all the deps. Running the build from yesterday seems to work, yes. I am thinking it does not have the row from pkgdepends which is causing the issue. What does I am on the machines that are having trouble running Ubuntu 20, and R 4.2.1. |
OK, I think I know how to fix this. |
Let me build new pak devel builds. I assume you are on x86_64. |
Yes, correct! |
OK, should be good now. |
Can confirm that it works now! |
# pak 0.5.1 * No user visible changes. # pak 0.5.0 * The `meta_*()` functions now consider the `platforms`, `cran_mirror` and `r_versions` config entries, see `?"pak-config"`. * Better Posit Package Manager (PPM) support. New `+ppm_has_binaries()`, `ppm_r_versions()`, `ppm_repo_url()`, `ppm_snapshots()` and `ppm_platforms()` functions to help interacting with PPM. See the new 'pkgcache and Posit Package Manager on Linux' article at https://r-lib.github.io/pkgcache. (r-lib/pkgcache#47 and r-lib/pkgdepends#186). * New `system_r_platform()` and `system_r_platform_data()` functions to query the current platform. * pak now support git repositories as package references. E.g. `git::https://github.com/r-lib/pak.git`. * pak now supports versioned CRAN packages, e.g. `[email protected]` will always install dplyr 1.1.1. Note that only CRAN packages are supported, Bioconductor packages are not (yet). * pak now has an alternative system requirements lookup implementation. It supports Fedora and Debian systems as well, in addition to Debian, Ubuntu, SUSE and RedHat derivatives. You can switch to this implementation by setting the `R_PKG_SYSREQS2` environment variable to `true`. * pak now does a better job looking up dependencies for hand-selected dependency types. E.g. `dependencies = "LinkingTo"`. * pak now removes `?ignore`-d packages from dependencies, and uses the correct version comparison for `?ignore-before.r` (r-lib/actions#708). * pak now does not fail for circular soft dependencies (#306). * pak now reports dependency solver failures better in some cases (#305, r-lib/pak#474). * pak now uses locally built CRAN binaries from the cache. Use the `?nocache` parameter to opt out from this, or `cache_delete(package = ...)` to remove a package from the cache.
Hi!
I have been using pak on the devel version as I am otherwise experiencing issues with packages that I some of the time want to download from github, and some of the time from CRAN (i.e. to get the latest version, but then go back to CRAN). Yesterday the latest pak devel version worked great, but today I get the error below. It seems to be related to the ppm adjustments made.
To solve this in the meantime, I wonder:
Is there a new stable version of pak planned for release to CRAN? At the moment the issues I am having with packages that are sometimes on CRAN and sometimes on github makes the current CRAN version problematic to use.
Is it possible to get yesterdays devel build somehow?
The text was updated successfully, but these errors were encountered: