Open prestongreene opened 6 years ago
I am having exactly the same problem. My sessionInfo()
is identical to that listed above. The only difference is that I was upgrading from R version 3.4.3.
Everything went smoothly, R was updated to R version 3.5.0 (2018-04-23) -- "Joy in Playing"
Also the packages installed on your previous version of R were restored
[At this point RStudio told me it was trying to update loaded packages and asked to restart, so I said yes]
Restarting R session...
> install.packages(as.vector(needed_packages))
Error in install.packages : object 'needed_packages' not found
R version change [3.4.3 -> 3.5.0] detected when restoring session; search path not restored
Here's the list of packages that seem to be currently installed after running updateR()
-- it seems that the only ones remaining are those that ship with R ("base" or "recommended" priority).
> installed.packages()[, "Priority"]
base boot class cluster codetools compiler
"base" "recommended" "recommended" "recommended" "recommended" "base"
datasets foreign graphics grDevices grid KernSmooth
"base" "recommended" "base" "base" "base" "recommended"
lattice MASS Matrix methods mgcv nlme
"recommended" "recommended" "recommended" "base" "recommended" "recommended"
nnet parallel rpart spatial splines stats
"recommended" "base" "recommended" "recommended" "base" "base"
stats4 survival tcltk tools utils
"base" "recommended" "base" "base" "base"
hi @prestongreene and @cring-toxstrategies , package restoring is one of the last features developed so thank you for the precious feedback. Going to work on this.
@prestongreene @cring-toxstrategies Have you tried using the plain R
app to run updateR()
rather thru Rstudio
? This solution worked for me as I had similar issues when updating thru Rstudio
.
I have the same issue. Any solution?
I am also getting an Error in install.packages : object 'needed_packages' not found
when running updateR()
in RStudio.
But running it from plain R instead of RStudio worked for me.
thank you @LunaSare @seantma , I am trying to get which is the difference among running updateR()
trough R and Rstudio.
Any idea about that?
I have the same issue. Any solution?
I also had this same problem.
> install.packages(as.vector(needed_packages)) Error in install.packages : object 'needed_packages' not found R version change [3.5.0 -> 3.6.0] detected when restoring session; search path not restored
Obviously, because the new R is installed and this operation failed, my old packages are gone.
Hi @fennuluotuo and @debusklaneml . Have you tried the workaround suggested by @seantma ? Thanks
Plus, I have added a disclaimer on this within the package Readme and will do the same on package loading. Thank you all for pointing this out.
I had the same problem. First, I tried to install the needed package in plain R then, I do it in RStudio. It worked. Thank you @seantma
Still running into issues with this, see https://stackoverflow.com/a/38619239/8400969. However, I suspect the package worked, even though I got this Error message, as when I restarted R it had updated to 3.6.2 and it looked like most of my packages survived the update as well.
After successfully updating R from 3.3. to 3.5 using updateR() from RStudio and selecting "yes" to restarting R, I got the following message:
It also looks like my old packages are no longer installed.
Here is my sessionInfo():