Watts-College / cpp-526-sum-2024

0 stars 0 forks source link

Error when running final dashboard project #23

Closed CTNovoa closed 4 months ago

CTNovoa commented 4 months ago

When attempting to "run" the final dashboard project I am getting the following error:

image

I verified that I have the newest version of R Studio and have tried updating to the newest version of R. Thus, I am not sure why this error is popping up...

gmcirco commented 4 months ago

Try reinstalling the 'cli' library:

install.packages("cli")

CTNovoa commented 4 months ago

Hm, I tried that and still seem to be getting the following error:

Error: package or namespace load failed for ‘ggmap’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): namespace ‘cli’ 3.6.0 is already loaded, but >= 3.6.1 is required In addition: Warning message: package ‘ggmap’ was built under R version 4.2.3

Thank you for the suggestion and assistance.

CTNovoa commented 4 months ago

@gmcirco It appears it may be having a similar issue with both tidyverse and ggmap. I have tried installing them again, and "cli," but have not had any luck unfortunately.

CTNovoa commented 4 months ago

Okay, I think I resolved this now by following some advice here: https://forum.posit.co/t/rlang-error-on-rstudio-2020-error-package-or-namespace-load-failed-for-in-loadnamespace/79768/4

I first had to intentionally remove the "cli" and "ggmap" packages (with remove.packages) and then install them again. Thank you, @gmcirco!