I am using Mac OS Monterey Version 12.4. When attempting to render Quarto, I see the following error:
Error in assignInNamespace("htmlPreserve", htmlPreserve, ns = "htmltools") : could not find function "assignInNamespace" Calls: .main -> source -> withVisible -> eval -> eval Execution halted Error in packageVersion("rmarkdown") : could not find function "packageVersion" Calls: cat -> paste0 Execution halted Unable to locate an installed version of R. Install R from https://cloud.r-project.org/
What I have done so far to try to address this issue:
- Downloaded the latest versions of R (4.2.1), R Studio (2022/07, 1-554), and Quarto (1.0.38), and the rmarkdown package (2.14) [FYI, I just checked rmarkdown's package version with packageVersion - which the error claims is not loaded]
- Tried to manually set the PATH to the R library(s): Adding to the PATH variable
old_path <- Sys.getenv("PATH") Sys.setenv(PATH = paste(old_path, "/Library/Frameworks/R.framework/Resources/library", sep = ":"))
I suspect the issue is because I am working in a project located on a Box (i.e. in the cloud) directory. I am able to use R just fine in R Studio, so it must be a Quarto specific issue with accessing R when working in a cloud environment(?).
Any assistance is greatly appreciated!