2018年7月17日火曜日

Upgrade packages in R


When unable to upgrade packages as they are already loaded, check "package" panel and uncheck loaded ones.


Unchecking the mark is equal to the command "detach("package:RMySQL", unload=TRUE)".
Do same for "DBI".
*Note: Skip "restart R session before upgrade" as it will bring back unloaded packages.

R_proj$cat ~/.Rprofile 
source( "~/R_proj/startup.R" )
R_proj$cat ~/R_proj/startup.R
library(xts)
library(quantmod)
library(vars)
library(mondate)
# library(RMySQL) #junbi
library(forecast)
library(beepr)



Don't forget to comment and uncomment packages in initial start files as required.

0 件のコメント: