Hi all,
When I start R Studio, I recieve the following info:
R version 4.3.1 (2023-06-16 ucrt) -- "Beagle Scouts"
Copyright (C) 2023 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
Error in detach("package:rlang") : invalid 'name' argument
It is the last line, with "Error in detach()" that seems to disable Rmarkdown and kniting for me.
I have tried the most simple codes that you can have, but when I try to knit the code, I get the following error message in the Render output console:
"Error in detach("package:rlang") : invalid 'name' argument
Execution halted"
I have removed rlang and reinstalled it, I have removed all packages and Rstudio/R and reinstalled it. All packages are updated.
The following regarding sessionInfo():
sessionInfo()
R version 4.3.1 (2023-06-16 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 11 x64 (build 22621)
Matrix products: default
locale:
*[1] LC_COLLATE=Swedish_Sweden.utf8 LC_CTYPE=Swedish_Sweden.utf8 LC_MONETARY=Swedish_Sweden.utf8 LC_NUMERIC=C *
*[5] LC_TIME=Swedish_Sweden.utf8 *
time zone: Europe/Stockholm
tzcode source: internal
attached base packages:
*[1] stats graphics grDevices utils datasets methods base *
loaded via a namespace (and not attached):
- [1] compiler_4.3.1 fastmap_1.1.1 cli_3.6.1 htmltools_0.5.5 tools_4.3.1 yaml_2.3.7 rmarkdown_2.23 knitr_1.43 xfun_0.39 *
[10] digest_0.6.33 rlang_1.1.1 evaluate_0.21
--
When starting RStudio, only "compiler_4.3.1 and tool_4.3.1 are loaded via a namespace
If there are any Suggestions to what can cause this error, or what steps to take please let me know!
Sorry in advance if there is something wrong with the formatting!