-
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
building a miniCRAN 3.4 using R 3.6 #129
Comments
we are using |
Hi, I actually solved the issue by setting env variable R_DEFAULT_SAVE_VERSION = 2 and R_DEFAULT_SERIALIZE_VERSION = 2. This way the .rds gets saved as version 2 (pre R 3.5). It's not ideal but it works while the team makes the switch. |
@andrie we should add this to an example/vignette. I'll add it to my to do list, but I don't know when I'll get to it. |
I'm adding an |
I've just created a miniCRAN repository for an offline installation of R 3.4.4 using R 4.2.2. I installed the dev version of miniCRAN to be sure that the upon mentioned commit was included (its version is 0.2.16.9000). Here the code to create the repository using R 4.2.2:
When trying to install packages in R 3.4.4, I'm getting the following error:
Does the above commit still need to be committed? |
That commit was merged a long time ago, but it's clear that it didn't solve the root cause. As a workaround I suggest you either use R-3.5 or earlier to create the miniCRAN, or use the advice earlier in this thread (#129 (comment)) |
The earlier supposed "fix" that I wrote didn't work at all. I also couldn't get the proposed workaround to work as expected. After some experimentation, I realised it's quite trivial to use I have this working in my local main branch and will commit this soon. |
Can we close this now? |
I am using 3.6.1 and building a miniCRAN for R 3.4.4.
The new packages get added correctly and build a miniCRAN for R 3.4.4 correctly. However, when trying to install packages from the miniCRAN using the R 3.4.4 I get the error
I found the issue and it was the index stored as RDS version 3
So I read the file in R 3.6, and overwrote it with
writeRDS(, version = 2)
and that solved the issue and I was able to install the packages in R 3.4.So miniCRAN puts the right version of the libraries in the folder, but the index is an
.rds
and that is no longer compatible by default across R=<3.5 to R>=3.6The text was updated successfully, but these errors were encountered: