Hi everyone,
This is a first for me, having to resort to online support threads, so sorry if I posted this topic in the wrong area.
I recently started a new job for a government agency. The IT department isn't able to help with this, and my small team doesn't know much about R. I've used R before in school and downloaded it multiple times on my personal computers. Now, I got set up with a 'company' laptop, and I'm encountering issues I've never dealt with before.
The main issues I'm having are mainly two things:
- I can't open up a markdown in RStudio because I get prompted with:
-
Install Required Packages: "Creating R Markdown documents requires an updated version of the rmarkdown package. Do you want to install this package now?"
-
Selecting "Yes" opens the Background Jobs tab. What follows is this:
--
Installing package into 'C:/Users/MyUserAccount/AppData/Local/R/win-library/4.4'
(as 'lib' is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/rmarkdown_2.29.tar.gz'
Content type 'application/x-gzip' length 2194660 bytes (2.1 MB)
==================================================
downloaded 2.1 MB -
installing source package 'rmarkdown' ...
** package 'rmarkdown' successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared object 'C:/Users/MyUserAccount/AppData/Local/R/win-library/4.4/digest/libs/x64/digest.dll':
LoadLibrary failure: This program is blocked by group policy. For more information, contact your system administrator.
Calls: ... namespaceImport -> loadNamespace -> library.dynam -> dyn.load -> inDL
Execution halted
ERROR: lazy loading failed for package 'rmarkdown' -
removing 'C:/Users/MyUserAccount/AppData/Local/R/win-library/4.4/rmarkdown'
The downloaded source packages are in
'C:\Users\MyUserAccount\AppData\Local\Temp\Rtmp8KIhQp\downloaded_packages'
Package 'rmarkdown' successfully installed.
Warning message:
In utils::install.packages("rmarkdown", repos = "https://cran.rstudio.com/", :
installation of package 'rmarkdown' had non-zero exit status
--
If I try to open a markdown file, I have to repeat installing/updating again, an endless loop.
So, two things from above:
a. The libraryload failure: This program is blocked by group policy.
- Naturally, you may wonder: "Are you an admin?"
- Yes. When I check to see my security and permissions, I see three entities. The SYSTEM, me, and me as an administrator. It says all entities have full control.
- Before coming here tried WIN +R, gpedit.msc < Local Computer Policy < Computer Configuration < Then I probed around to see if any policies, specifically the Group Policy folder, were blocking what I was trying to do in RStudio. However, I wasn't able to find anything. They're all set as Not Configured.
- My gut tells me I missed something big here since the error message excplicitly states "blocked by group policy". I'm just not very tech savy with this area of computers.
b. Above it says rmarkdown was successfully installed followed by a warning message. I don't really know what to make of this. Did it successfully install rmarkdown or not?
- The second issue, which is also related, is that I can't load packages using library().
- I can see that my User Library has a lot of packages installed, such as ggplot2, tidyverse, dplyr, etc. But whenever I check the box to load the packages, or enter library(package), I get a similar error message:
Error: package or namespace load failed for ‘ggplot2’ in inDL(x, as.logical(local), as.logical(now), ...):
unable to load shared object 'C:/Users/MyUserAccount/AppData/Local/R/win-library/4.4/rlang/libs/x64/rlang.dll':
LoadLibrary failure: This program is blocked by group policy. For more information, contact your system administrator.
- Depending on the package I'm trying to load, the specifics of the error message varies, but it is all the same.
A final note:
- I can't run RStudio as administrator. It just opens up RStudio, but nothing at all appears, just the "File, Edit, Code, ..." selections. But when I click on them "Empty" appears.
- I've made sure I have the latest version of R and RStudio.
- I've uninstalled and installed again.
- I've checked if I have full controls and permissions
If anyone knows how to help, I would greatly appreciate it! If you need more context, feel free to let me know.