A colleague is encountering problems loading several packages on a Mac. Would appreciate any suggestions about how to solve these issues loading tidyverse and tidycensus. rdgal has been installed
The log:
- library(tidyverse) # The tidyverse utilities (including ggplot2)
── Attaching packages ──────────────────────────────────────────────────────────────────── tidyverse 1.3.1 ──
ggplot2 3.3.6 purrr 0.3.4
tibble 3.1.7 dplyr 1.0.9
tidyr 1.2.0 stringr 1.4.0
readr 2.1.2 forcats 0.5.1
── Conflicts ─────────────────────────────────────────────────────────────────────── tidyverse_conflicts() ──
dplyr::filter() masks stats::filter()
dplyr::lag() masks stats::lag()
Error in -library(tidyverse) : invalid argument to unary operatorlibrary(survey) # Programs for calculating weighted survey results
Loading required package: grid
Loading required package: MatrixAttaching package: ‘Matrix’
The following objects are masked from ‘package:tidyr’:
expand, pack, unpack
Loading required package: survival
Attaching package: ‘survey’
The following object is masked from ‘package:graphics’:
dotchart
library(srvyr) # Helper program for survey
Attaching package: ‘srvyr’
The following object is masked from ‘package:stats’:
filter
library(tidycensus) # TidyCensus data access library
Error: package or namespace load failed for ‘tidycensus’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called ‘rgdal’
My colleague is running R Studio 2022.02.3 Build 492 and R 4.2.0
TIA