I am starting a new project with RMD. However, I am unable to knit even the default html RMD. I open a new project, click file> new file> RMD (Document, HTML). I press knit, without changing any of the default code.
This is the error:
Error in strsplit(Sys.getenv("R_LIBS")) :
argument "split" is missing, with no default
Calls: .libPaths ... Sys.glob -> path.expand -> path.expand -> unlist -> strsplit
Execution halted
I have knit RMD documents in the past and have not knowingly updated R or made any major changes since that time. Seemingly suddenly, I have lost the ability to knit even the default html RMD in my local R IDE. Anyone have any suggestions?
And running xfun::session_info(c("rmarkdown", "knitr")) results in this:
R version 3.6.1 (2019-07-05)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows 10 x64 (build 17763), RStudio 1.2.5019
Random number generation:
RNG: Mersenne-Twister
Normal: Inversion
Sample: Rounding
The solution was to reinstall the latest versions or R and R studio. I was hesitant to do so in the first place but it turns out the local R IDE should not impact R sessions/packages running in the organization's VM.
Original Problem: Open a new R session, Open a new RMD file, click knitr. I was expecting this to just knit the default RMD document generated by R as an HTML. There were no changes to the default RMD code.
Solution: Update to the latest version of R and R studio. Open a new R session, try to knit the default RMD as html document. (Relevant packages will be reinstalled in the new version of R you just updated.) The document should knit successfully.