Issues loading packages on a Mac

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 ──
    :heavy_check_mark: ggplot2 3.3.6 :heavy_check_mark: purrr 0.3.4
    :heavy_check_mark: tibble 3.1.7 :heavy_check_mark: dplyr 1.0.9
    :heavy_check_mark: tidyr 1.2.0 :heavy_check_mark: stringr 1.4.0
    :heavy_check_mark: readr 2.1.2 :heavy_check_mark: forcats 0.5.1
    ── Conflicts ─────────────────────────────────────────────────────────────────────── tidyverse_conflicts() ──
    :heavy_multiplication_x: dplyr::filter() masks stats::filter()
    :heavy_multiplication_x: dplyr::lag() masks stats::lag()
    Error in -library(tidyverse) : invalid argument to unary operator

library(survey) # Programs for calculating weighted survey results
Loading required package: grid
Loading required package: Matrix

Attaching 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

If library(rgdal) does not work try a reinstall of rgdal. you may have a dodgy install.

install.packages("rgdal")