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?
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
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?
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!