1 year ago

#353426

test-img

Silchara

Error : .onLoad failed in loadNamespace() for 'utils', details: call: switch(os, Linux = if (file.exists("/etc/os-release"))

I am struggling to have my R started on my new mac from work (usually, I work on linux). In macOS bigSur 11.4, I have download xquartz and then install R 4.1.3 all good except this

Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin17.0 (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.

  Natural language support but running in an English locale

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.
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

>sessionInfo()
Error in sessionInfo() : could not find function "sessionInfo"

So I tried to google it and found this https://github.com/jasp-stats/jasp-issues/issues/1131 and this https://github.com/jasp-stats/jasp-desktop/blob/development/Docs/user-guide/logging-howto.md did not solve the issue. Please let me know if I need to provide other details. Thank you

r

installation

macos-big-sur

0 Answers

Your Answer

Accepted video resources