Hi guys
I'm a new user to rmarkdown and trying to learn how to format better tables for a report with qualitative data.
I had a report using the package "kableExtra" and it was fine. But now I cannot even load the package anymore and I do not know why.
This is the error I get:
"package of namespace load failed for 'kableExtra' in library.dynam(lib, package, package.lib):
DLL 'systemfonts' not found: maybe not installed for this architecture?
Execution halted"
Anyone can help me, please?
I am using RStudio 2022.02.0 Build 443 and R version 4.1.2 (2021-11-01) -- "Bird Hippie"
Thank you
sessionInfo()
R version 4.1.2 (2021-11-01)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19042)
I've tried that, still not working and same error message. And I also included sessionInfo() above.
After installing 'systemfonts', library(systemfonts) gets me the error: Error: package ‘systemfonts’ is not installed for 'arch = x64' In addition: Warning message: package ‘systemfonts’ was built under R version 4.1.3
install.packages("systemfonts")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/systemfonts_1.0.4.zip'
Content type 'application/zip' length 2021636 bytes (1.9 MB)
downloaded 1.9 MB
package ‘systemfonts’ successfully unpacked and MD5 sums checked
Warning in install.packages :
cannot delete reparse point 'C:\Users\cnetto\OneDrive - Harbour Air\Documents\R\R-4.1.2\library/systemfonts/libs', reason 'There is a mismatch between the tag specified in the request and the tag present in the reparse point'
Warning in install.packages :
cannot remove prior installation of package ‘systemfonts’
Warning in install.packages :
cannot delete reparse point 'C:\Users\cnetto\OneDrive - Harbour Air\Documents\R\R-4.1.2\library/systemfonts/libs', reason 'There is a mismatch between the tag specified in the request and the tag present in the reparse point'
Warning in install.packages :
restored ‘systemfonts’
The downloaded binary packages are in
C:\Users\cnetto\AppData\Local\Temp\RtmpuUgANs\downloaded_packages
Is this a Cloud synced folder? If so, R has problems installing packages on cloud synced folders, so I suggest you to set your package library in a non-synced folder.
You can change the default library folder by setting your R_LIBS_SITE environmental variable in a .Reviron or .Rprofile file. For example:
# In a .Renviron file you can set it by adding a line like this one with the desired location
R_LIBS_SITE="C:\\Program Files\\R\\R-4.1.2\\library"
For a more detailed explanation, you can read this blog post
Glad to hear you solved your problem, just be aware that using that method you are setting your library path at the operating system level, so if in the future this needs to be changed you have to remember that you set it this way because it is going to be independent of your R setup.