Problem loading 'agricolae' package

Hello,
I am new to R and Rstudio and I have a problem loading 'agricolae' package.
I have the latest versions (R 4.1.1 and Rstudio 1.4.1717).
Installation seems fine:

> install.packages("agricolae")
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/agricolae_1.3-5.zip'
Content type 'application/zip' length 1273750 bytes (1.2 MB)
downloaded 1.2 MB

package ‘agricolae’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
	    C:\Users\TrebbiD\AppData\Local\Temp\RtmpUvmR83\downloaded_packages

but when I load the library it gives the following error:

> library(agricolae)
> Error: package or namespace load failed for ‘agricolae’ in library.dynam(lib, package, package.lib):
>  DLL ‘mime’ not found: maybe not installed for this architecture?

What shall I do? Thanks

Install the mime package

install.packages("mime")

Thanks for the suggestion.
I installed mime succesfully, but then got the same identical error while loading agricolae.

install.packages("mime")
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/mime_0.11.zip'
Content type 'application/zip' length 47945 bytes (46 KB)
downloaded 46 KB

package ‘mime’ successfully unpacked and MD5 sums checked
Warning in install.packages :
cannot delete reparse point 'C:\Users\TrebbiD\OneDrive - Sensient Technologies Corporation\Documents\R\R-4.1.1\library/mime/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 ‘mime’
Warning in install.packages :
cannot delete reparse point 'C:\Users\TrebbiD\OneDrive - Sensient Technologies Corporation\Documents\R\R-4.1.1\library/mime/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 ‘mime’

The downloaded binary packages are in
C:\Users\TrebbiD\AppData\Local\Temp\Rtmp8222Ac\downloaded_packages

install.packages("agricolae")
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/agricolae_1.3-5.zip'
Content type 'application/zip' length 1273750 bytes (1.2 MB)
downloaded 1.2 MB

package ‘agricolae’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\TrebbiD\AppData\Local\Temp\Rtmp8222Ac\downloaded_packages
library(agricolae)
Error: package or namespace load failed for ‘agricolae’ in library.dynam(lib, package, package.lib):
DLL ‘mime’ not found: maybe not installed for this architecture?

Any other option I should try?

You haven't installed mime successfully, most likely because R has known issues with cloud-synced folders, I would recommend setting your package library in a non synced folder.

You can change the default library folder by setting your R_LIBS_SITE environmental variable on a .Reviron or .Rprofile file

# In a .Renviron file you can set it by adding this line
R_LIBS_SITE="C:\\Program Files\\R\\R-4.1.1\\library"

For a more detailed explanation, you can read this blog post

OK, I will try this and see if it solves the problem.
FYI I am working on a Corporate PC where I do not have full access to make major changes on where files go... but I will try anyway!

Hi andresrcs,
I was able to solve the problem in this way:

remove.packages("mime")
install.packages("mime")
install.packages("agricolae")
library("agricolae")

Thanks for the help!