I'm trying to download R on my mac. I have Big Sur and a M1 chip.
During startup - Warning messages:
1: package ‘utils’ in options("defaultPackages") was not found
2: package ‘stats’ in options("defaultPackages") was not found
Error : .onLoad failed in loadNamespace() for 'utils', details:
call: switch(os, Linux = if (file.exists("/etc/os-release")) {
error: EXPR must be a length 1 vector
Related
I can install rJava seemingly fine from Rstudio:
install.packages("rJava")
trying URL 'https://cran.rstudio.com/bin/macosx/contrib/4.1/rJava_1.0-6.tgz'
Content type 'application/x-gzip' length 1138672 bytes (1.1 MB)
==================================================
downloaded 1.1 MB
The downloaded binary packages are in
/var/folders/qz/9s5hs9ss00z2yzj_r2668_3c0000gn/T//RtmpqNOAbP/downloaded_packages
But when I then try to call it from the library I get the following error:
library(rJava)
Unable to find any JVMs matching version "(null)".
No Java runtime present, try --request to install.
Error: package or namespace load failed for ‘rJava’:
.onLoad failed in loadNamespace() for 'rJava', details:
call: fun(libname, pkgname)
error: JVM could not be found
In addition: Warning messages:
1: In system("/usr/libexec/java_home", intern = TRUE) :
running command '/usr/libexec/java_home' had status 1
2: In fun(libname, pkgname) :
Cannot find JVM library 'NA/lib/server/libjvm.dylib'
Install Java and/or check JAVA_HOME (if in doubt, do NOT set it, it will be detected)
> library(rJava)
Unable to find any JVMs matching version "(null)".
No Java runtime present, try --request to install.
Error: package or namespace load failed for ‘rJava’:
.onLoad failed in loadNamespace() for 'rJava', details:
call: fun(libname, pkgname)
error: JVM could not be found
In addition: Warning messages:
1: In system("/usr/libexec/java_home", intern = TRUE) :
running command '/usr/libexec/java_home' had status 1
2: In fun(libname, pkgname) :
Cannot find JVM library 'NA/lib/server/libjvm.dylib'
Install Java and/or check JAVA_HOME (if in doubt, do NOT set it, it will be detected)
I have installed the latest version of Java and my R is version 4.1.2. I'm using Mac.
If anyone knows how to help I would be very grateful.
Thank you!
I would like to load mailR package in both my local rStudio and one run off an ec2 server. I get this error:
> require(mailR)
Loading required package: mailR
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: fun(libname, pkgname)
error: No CurrentVersion entry in Software/JavaSoft registry! Try re-installing Java and make sure R and Java have matching architectures.
In addition: Warning message:
package ‘mailR’ was built under R version 3.3.3
If I try to load rJava I get:
> require(rJava)
Loading required package: rJava
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: fun(libname, pkgname)
error: No CurrentVersion entry in Software/JavaSoft registry! Try re-installing Java and make sure R and Java have matching architectures.
In addition: Warning message:
package ‘rJava’ was built under R version 3.3.2
Thank you for the help!
library("forecast")
Error : .onAttach failed in attachNamespace() for 'forecast', details:
call: fun(libname, pkgname)
error: 4 arguments passed to .Internal(nchar) which requires 3
In addition: Warning message:
package ‘forecast’ was built under R version 3.2.2
Error: package or namespace load failed for ‘forecast’
I am suddenly getting the following error when trying to start a shiny App from within RStudio:
Error : .onLoad failed in loadNamespace() for 'htmltools', details:
call: get(genname, envir = envir)
error: object 'knit_print' not found
In addition: Warning message:
package ‘shiny’ was built under R version 3.1.2
Show Traceback
Rerun with Debug
Error: package or namespace load failed for ‘shiny’
I tried to reinstall htmltool but it does not fix the problem.
Can anyone help?
I tried to install the R package crypticIBD check but got the follwing error when I tried to use it
> library("CrypticIBDcheck")
load package : rJPSGCS
load package : rJava
Error : .onLoad in loadNamespace() für 'rJava' error, details:
command: fun(libname, pkgname)
error: JAVA_HOME cannot be determined from the Registry
error: Paket ‘rJava’ can't be found
>
coudl somebody point me into a direction?
I then successfully installed the rJava package and treid to run the package again
: .onLoad in loadNamespace() error for rJava
command: fun(libname, pkgname)
error: JAVA_HOME cannot be determined from the Registry
error: Paket ‘rJava’ can't be found
>