I am (kinda out of nowhere) starting to receive errors when I 1) load libraries (ggplot2, rms, survminer) that have been installed and used for some time and 2) when I try to install new packeges (tidyverse)
I am using Mac OS Mojave 10.14.5 and R studio 1.2.1335
> version
_
platform x86_64-apple-darwin13.4.0
arch x86_64
os darwin13.4.0
system x86_64, darwin13.4.0
status
major 3
minor 3.2
year 2016
month 10
day 31
svn rev 71607
language R
version.string R version 3.3.2 (2016-10-31)
nickname Sincere Pumpkin Patch
Eg. I get this
library(ggplot2)
Error in library(ggplot2) : there is no package named ‘ggplot2’
I tried
library(tidyverse)
Error in library(tidyverse) : there is no package named ‘tidyverse’
In addition: Warning:
I as.POSIXlt.POSIXct(x, tz) :
unknown timezone 'zone/tz/2019a.1.0/zoneinfo/Europe/Copenhagen'
And I tried
install.packages("tidyverse")
also installing the dependencies ‘vctrs’, ‘ps’, ‘glue’, ‘Rcpp’, ‘fansi’, ‘pillar’, ‘processx’, ‘dplyr’, ‘purrr’, ‘rlang’, ‘tibble’, ‘tidyselect’, ‘ellipsis’, ‘tidyr’, ‘callr’, ‘fs’, ‘dbplyr’, ‘forcats’, ‘ggplot2’, ‘modelr’, ‘reprex’
There are binary versions available but the source versions are later:
binary source needs_compilation
glue 1.2.0 1.3.1 TRUE
Rcpp 0.12.14 1.0.1 TRUE
pillar 1.0.1 1.4.1 FALSE
processx 2.0.0.1 3.3.1 TRUE
dplyr 0.7.4 0.8.1 TRUE
purrr 0.2.4 0.3.2 TRUE
rlang 0.1.6 0.3.4 TRUE
tibble 1.3.4 2.1.3 TRUE
tidyselect 0.2.3 0.2.5 TRUE
tidyr 0.7.2 0.8.3 TRUE
callr 1.0.0 3.2.0 FALSE
dbplyr 1.1.0 1.4.2 FALSE
forcats 0.2.0 0.4.0 FALSE
ggplot2 2.2.1 3.2.0 FALSE
modelr 0.1.1 0.1.4 FALSE
tidyverse 1.1.1 1.2.1 FALSE
Do you want to install from sources the packages which need compilation?
y/n?
It does not matter whether I choose "yes" or "no". I receive this every time:
First
Packages which are only available in source form, and may need compilation of
C/C++/Fortran: ‘vctrs’ ‘ps’ ‘fansi’ ‘ellipsis’ ‘fs’
Do you want to attempt to install these from sources?
y/n?
And then (for all implied packeges, the down below is just an example of the error)
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
unknown timezone 'zone/tz/2019a.1.0/zoneinfo/Europe/Copenhagen'
ERROR: dependencies ‘dplyr’, ‘tibble’ are not available for package ‘dbplyr’
* removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/dbplyr’
Warning in install.packages :
installation of package ‘dbplyr’ had non-zero exit status
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
unknown timezone 'zone/tz/2019a.1.0/zoneinfo/Europe/Copenhagen'
ERROR: dependencies ‘dplyr’, ‘tibble’, ‘tidyr’ are not available for package ‘modelr’
* removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/modelr’
Warning in install.packages :
installation of package ‘modelr’ had non-zero exit status
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
unknown timezone 'zone/tz/2019a.1.0/zoneinfo/Europe/Copenhagen'
ERROR: dependencies ‘dplyr’, ‘dbplyr’, ‘forcats’, ‘ggplot2’, ‘modelr’, ‘reprex’, ‘tibble’, ‘tidyr’ are not available for package ‘tidyverse’
* removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/tidyverse’
Warning in install.packages :
installation of package ‘tidyverse’ had non-zero exit status
I am relatively new in R, so my skills are limited. I, of course, tried trouble shooting on different webpages; changing the timezone, updated R, even my computer. But I still receive these errors.