Could not find function “year” after installation from zip file R
问题 I'm using R and working on a server without internet connection. So I had to search how to install packages from a zip file. I wanted to use the lubridate package. install.packages("V:/R/lubridate_1.3.3.zip", repos=NULL) Then I tried to use library(lubridate) year(data$date) but I received an error that package or namespace load failed for "lubridate" . And the function year could not be found . Did I forgot any step? 回答1: If you install a package with install.packages from a CRAN mirror, the