Error loading tidyverse in Rstudio

I'm seeing an error when trying to load tidyverse in Rstudio. (See attached image.) I don't see the error in base R--I only get it when using Rstudio. I updated the packages and updated Rstudio, but it still didn't work.

Here's another error I receive:

> library(tidyverse)
Error in if (is_string(x)) asNamespace(x) : 
  argument is not interpretable as logical
Error: package or namespace load failed for ‘tidyverse’:
 .onLoad failed in loadNamespace() for 'dplyr', details:
  call: if (is_string(x)) asNamespace(x)
  error: argument is not interpretable as logical

I'm using R version 4.1.2 with Rstudio 2021.09.1:
RStudio 2021.09.1+372 "Ghost Orchid" Release (8b9ced188245155642d024aa3630363df611088a, 2021-11-08) for Windows
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.8 Chrome/69.0.3497.128 Safari/537.36