Everytime I tryed to open the binary, it opens a empty window with no options on the menu. I can't even close the app (then I use force to quit option). I've already tried to install using the binaries, brew and the nightly versions. All the same. How can I fix it? thanks in advance.
I have the same issue. But on Macbook air intel 2020. I also have issues with spotify as an app. I have tried many steps and also posted an issue in the apple community Apps won't open after update to sonoma, b… - Apple Community. I have reinstalled the computer clean and that made the apps work, however I can't run like that. Hopefully someone has an answer to this, haven't found many topics with this issue.
RStudio Diagnostics Report
RStudio Version
2023.09.1+494
Session Information
--------------------------------------------------
R version 4.3.2 (2023-10-31)
Platform: x86_64-apple-darwin20 (64-bit)
Running under: macOS Sonoma 14.1.1
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/lib/libRlapack.dylib; LAPACK version 3.11.0
locale:
[1] *************************
time zone: Europe/Stockholm
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] **********************
System Information
--------------------------------------------------
sysname : Darwin
release : 23.1.0
version : Darwin Kernel Version 23.1.0: Mon Oct 9 21:27:27 PDT 2023; root:xnu-10002.41.9~6/RELEASE_X86_64
nodename : MacBook-Air-som-tillhor-Jakob-10.local
machine : x86_64
login : <me>
user : <me>
effective_user : <me>
Platform Information
--------------------------------------------------
OS.type : unix
file.sep : /
dynlib.ext : .so
GUI : X11
endian : little
pkgType : mac.binary.big-sur-x86_64
path.sep : :
r_arch :
Environment Variables
--------------------------------------------------
_ : /Applications/RStudio.app/Contents/MacOS/RStudio
__CF_USER_TEXT_ENCODING : 0x1F5:0x0:0x7
__CFBundleIdentifier : com.apple.Terminal
CLICOLOR_FORCE : 1
DISPLAY : /private/tmp/com.apple.launchd.Ie16JhGTKC/org.xquartz:0
DYLD_FALLBACK_LIBRARY_PATH : /Library/Frameworks/R.framework/Resources/lib:/Library/Java/JavaVirtualMachines/jdk-11.0.18+10/Contents/Home/lib/server:/var/folders/p9/rms8_8bx0175m4s7ryjcdkt80000gn/T/rstudio-fallback-library-path-1129393812
EDITOR : vi
GIT_ASKPASS : rpostback-askpass
HOME : /Users/<me>
LANG : sv_SE.UTF-8
LC_CTYPE : sv_SE.UTF-8
LN_S : ln -s
LOGNAME : *** redacted ***
MAKE : make
OLDPWD : /Users/<me>
ORIGINAL_XDG_CURRENT_DESKTOP : undefined
PAGER : /usr/bin/less
PATH : /Library/Frameworks/Python.framework/Versions/3.11/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/Users/<me>/Applications/quarto/bin:/Library/TeX/texbin:/usr/texbin:/Applications/RStudio.app/Contents/Resources/app/quarto/bin:/Applications/RStudio.app/Contents/Resources/app/bin/postback
PWD : *** redacted ***
PYTHONIOENCODING : utf-8
R_ARCH :
R_BROWSER : /usr/bin/open
R_BZIPCMD : /usr/bin/bzip2
R_CLI_HAS_HYPERLINK_IDE_HELP : true
R_CLI_HAS_HYPERLINK_IDE_RUN : true
R_CLI_HAS_HYPERLINK_IDE_VIGNETTE : true
R_DOC_DIR : /Library/Frameworks/R.framework/Resources/doc
R_GZIPCMD : /usr/bin/gzip
R_HOME : /Library/Frameworks/R.framework/Resources
R_INCLUDE_DIR : /Library/Frameworks/R.framework/Resources/include
R_LIBS_SITE : /Library/Frameworks/R.framework/Resources/site-library
R_LIBS_USER : /Users/<me>/Library/R/x86_64/4.3/library
R_PAPERSIZE : a4
R_PDFVIEWER : /usr/bin/open
R_PLATFORM : x86_64-apple-darwin20
R_PRINTCMD : lpr
R_QPDF : /Library/Frameworks/R.framework/Resources/bin/qpdf
R_RD4PDF : times,inconsolata,hyper
R_RUNTIME :
R_SESSION_TMPDIR : /var/folders/p9/rms8_8bx0175m4s7ryjcdkt80000gn/T//Rtmpmo4bNN
R_SHARE_DIR : /Library/Frameworks/R.framework/Resources/share
R_STRIP_SHARED_LIB : strip -x
R_STRIP_STATIC_LIB : strip -S
R_SYSTEM_ABI : macos,gcc,gxx,gfortran,gfortran
R_TEXI2DVICMD : /opt/R/x86_64/bin/texi2dvi
R_UNZIPCMD : /usr/bin/unzip
R_ZIPCMD : /usr/bin/zip
RMARKDOWN_MATHJAX_PATH : /Applications/RStudio.app/Contents/Resources/app/resources/mathjax-27
RS_LOG_LEVEL : WARN
RS_RPOSTBACK_PATH : /Applications/RStudio.app/Contents/Resources/app/bin/rpostback
RS_SHARED_SECRET : *** redacted ***
RSTUDIO : 1
RSTUDIO_CLI_HYPERLINKS : true
RSTUDIO_CONSOLE_COLOR : 256
RSTUDIO_CONSOLE_WIDTH : 80
RSTUDIO_DESKTOP_EXE : /Applications/RStudio.app/Contents/MacOS/RStudio
RSTUDIO_FALLBACK_LIBRARY_PATH : /var/folders/p9/rms8_8bx0175m4s7ryjcdkt80000gn/T/rstudio-fallback-library-path-1129393812
RSTUDIO_PANDOC : /Applications/RStudio.app/Contents/Resources/app/quarto/bin/tools
RSTUDIO_PROGRAM_MODE : desktop
RSTUDIO_SESSION_PID : 5646
RSTUDIO_SESSION_PORT : 18357
RSTUDIO_USER_IDENTITY : <me>
RSTUDIO_WINUTILS : bin/winutils
SED : /usr/bin/sed
SHELL : /bin/zsh
SHLVL : 1
SSH_ASKPASS : rpostback-askpass
SSH_AUTH_SOCK : *** redacted ***
TAR : /usr/bin/tar
TERM : xterm-256color
TERM_PROGRAM : Apple_Terminal
TERM_PROGRAM_VERSION : 452
TERM_SESSION_ID : 42CB96C2-50ED-4C8F-8406-348AE40141FD
TMPDIR : /var/folders/p9/rms8_8bx0175m4s7ryjcdkt80000gn/T/
USER : <me>
XPC_FLAGS : 0x0
XPC_SERVICE_NAME : 0
R Version
--------------------------------------------------
platform : x86_64-apple-darwin20
arch : x86_64
os : darwin20
system : x86_64, darwin20
status :
major : 4
minor : 3.2
year : 2023
month : 10
day : 31
svn rev : 85441
language : R
version.string : R version 4.3.2 (2023-10-31)
nickname : Eye Holes
R Home
--------------------------------------------------
<me>
R Search Path
--------------------------------------------------
.GlobalEnv
tools:rstudio
package:stats
package:graphics
package:grDevices
package:utils
package:datasets
package:methods
Autoloads
package:base
R Library Paths
--------------------------------------------------
/Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library
Loaded Packages
--------------------------------------------------
base : /Library/Frameworks/R.framework/Resources/library/base
compiler : /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library/compiler
datasets : /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library/datasets
graphics : /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library/graphics
grDevices : /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library/grDevices
methods : /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library/methods
stats : /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library/stats
tools : /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library/tools
utils : /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library/utils
Installed Packages
--------------------------------------------------
Package LibPath Version
1 base /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 4.3.2
2 boot /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 1.3-28.1
3 class /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 7.3-22
4 cluster /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 2.1.4
5 codetools /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 0.2-19
6 compiler /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 4.3.2
7 datasets /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 4.3.2
8 foreign /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 0.8-85
9 graphics /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 4.3.2
10 grDevices /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 4.3.2
11 grid /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 4.3.2
12 KernSmooth /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 2.23-22
13 lattice /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 0.21-9
14 MASS /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 7.3-60
15 Matrix /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 1.6-1.1
16 methods /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 4.3.2
17 mgcv /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 1.9-0
18 nlme /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 3.1-163
19 nnet /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 7.3-19
20 parallel /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 4.3.2
21 rpart /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 4.1.21
22 spatial /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 7.3-17
23 splines /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 4.3.2
24 stats /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 4.3.2
25 stats4 /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 4.3.2
26 survival /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 3.5-7
27 tcltk /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 4.3.2
28 tools /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 4.3.2
29 utils /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 4.3.2
R System Profile: /Library/Frameworks/R.framework/Resources/library/base/R/Rprofile
--------------------------------------------------
### This is the system Rprofile file. It is always run on startup.
### Additional commands can be placed in site or user Rprofile files
### (see ?Rprofile).
### Copyright (C) 1995-2022 The R Core Team
### Notice that it is a bad idea to use this file as a template for
### personal startup files, since things will be executed twice and in
### the wrong environment (user profiles are run in .GlobalEnv).
.GlobalEnv <- globalenv()
attach(NULL, name = "Autoloads")
.AutoloadEnv <- as.environment(2)
assign(".Autoloaded", NULL, envir = .AutoloadEnv)
T <- TRUE
F <- FALSE
R.version <- structure(R.Version(), class = "simple.list")
version <- R.version # for S compatibility
## for backwards compatibility only
R.version.string <- R.version$version.string
## NOTA BENE: options() for non-base package functionality are in places like
## --------- ../utils/R/zzz.R
options(keep.source = interactive())
options(warn = 0)
# options(repos = c(CRAN="@CRAN@"))
# options(BIOC = "h t t p://www.bioconductor.org")
## setting from an env variable added in 4.0.2
local({to <- as.integer(Sys.getenv("R_DEFAULT_INTERNET_TIMEOUT", 60))
if (is.na(to) || to <= 0) to <- 60L
options(timeout = to)
})
options(encoding = "native.enc")
options(show.error.messages = TRUE)
## keep in sync with PrintDefaults() in ../../main/print.c :
options(scipen = 0)
options(max.print = 99999)# max. #{entries} in internal printMatrix()
options(add.smooth = TRUE)# currently only used in 'plot.lm'
if(!interactive())
options(showErrorCalls = TRUE)
local({dp <- Sys.getenv("R_DEFAULT_PACKAGES")
if(identical(dp, "")) ## it fact methods is done first
dp <- c("datasets", "utils", "grDevices", "graphics",
"stats", "methods")
else if(identical(dp, "NULL")) dp <- character(0)
else dp <- strsplit(dp, ",")[[1]]
dp <- sub("[[:blank:]]*([[:alnum:]]+)", "\\1", dp) # strip whitespace
options(defaultPackages = dp)
})
## Expand R_LIBS_* environment variables.
Sys.setenv(R_LIBS_SITE =
.expand_R_libs_env_var(Sys.getenv("R_LIBS_SITE")))
Sys.setenv(R_LIBS_USER =
.expand_R_libs_env_var(Sys.getenv("R_LIBS_USER")))
local({
if(nzchar(tl <- Sys.getenv("R_SESSION_TIME_LIMIT_CPU")))
setSessionTimeLimit(cpu = tl)
if(nzchar(tl <- Sys.getenv("R_SESSION_TIME_LIMIT_ELAPSED")))
setSessionTimeLimit(elapsed = tl)
})
.First.sys <- function()
{
for(pkg in getOption("defaultPackages")) {
res <- require(pkg, quietly = TRUE, warn.conflicts = FALSE,
character.only = TRUE)
if(!res)
warning(gettextf('package %s in options("defaultPackages") was not found', sQuote(pkg)),
call. = FALSE, domain = NA)
}
}
## called at C level in the startup process prior to .First.sys
.OptRequireMethods <- function()
{
pkg <- "methods" # done this way to avoid R CMD check warning
if(pkg %in% getOption("defaultPackages"))
if(!require(pkg, quietly = TRUE, warn.conflicts = FALSE,
character.only = TRUE))
warning('package "methods" in options("defaultPackages") was not found',
call. = FALSE)
}
if(nzchar(Sys.getenv("R_BATCH"))) {
.Last.sys <- function()
{
cat("> proc.time()\n")
print(proc.time())
}
## avoid passing on to spawned R processes
## A system has been reported without Sys.unsetenv, so try this
try(Sys.setenv(R_BATCH=""))
}
local({
if(nzchar(rv <- Sys.getenv("_R_RNG_VERSION_")))
suppressWarnings(RNGversion(rv))
})
.sys.timezone <- NA_character_
local({
## create an active binding for .Library.site, so that it can be
## modified after the base environment is locked
## remove the binding in the lazyload data base
.Internal(mkUnbound(as.name(".Library.site")))
siteLibrary <- character()
slfun <- function(v) {
if (!missing(v))
siteLibrary <<- v
siteLibrary
}
makeActiveBinding(".Library.site", slfun, baseenv())
## make .Library.site accessible also from global environment to
## preserve functionality of site profiles assigning to it directly
## (originally, site profiles were run in base environment)
makeActiveBinding(".Library.site", slfun, globalenv())
})
###-*- R -*- Unix Specific ----
.Library <- file.path(R.home(), "library")
.Library.site <- Sys.getenv("R_LIBS_SITE") # This is set in Renviron.
.Library.site <-
if(.Library.site == "NULL") character() else unlist(strsplit(.Library.site, ":"))
.Library.site <- .Library.site[dir.exists(.Library.site)]
local({
libs <- Sys.getenv("R_LIBS_USER") # This is set in Renviron.
libs <- if(libs == "NULL") character() else unlist(strsplit(libs, ":"))
## .libPaths filters on existence.
invisible(.libPaths(c(unlist(strsplit(Sys.getenv("R_LIBS"), ":")),
libs)))
})
local({
popath <- Sys.getenv("R_TRANSLATIONS", "")
if(!nzchar(popath)) {
paths <- file.path(.libPaths(), "translations", "DESCRIPTION")
popath <- dirname(paths[file.exists(paths)][1])
}
bindtextdomain("R", popath)
bindtextdomain("R-base", popath)
assign(".popath", popath, .BaseNamespaceEnv)
})
local({
## we distinguish between R_PAPERSIZE as set by the user and by configure
papersize <- Sys.getenv("R_PAPERSIZE_USER")
if(!nchar(papersize)) {
lcpaper <- Sys.getlocale("LC_PAPER") # might be null: OK as nchar is 0
papersize <- if(nchar(lcpaper))
if(length(grep("(_US|_CA)", lcpaper))) "letter" else "a4"
else Sys.getenv("R_PAPERSIZE")
}
options(papersize = papersize,
printcmd = Sys.getenv("R_PRINTCMD"),
dvipscmd = Sys.getenv("DVIPS", "dvips"),
texi2dvi = Sys.getenv("R_TEXI2DVICMD"),
browser = Sys.getenv("R_BROWSER"),
pager = file.path(R.home(), "bin", "pager"),
pdfviewer = Sys.getenv("R_PDFVIEWER"),
useFancyQuotes = TRUE)
})
## non standard settings for the R.app GUI of the macOS port
if(.Platform$GUI == "AQUA") {
## this is set to let RAqua use both X11 device and X11/TclTk
if (Sys.getenv("DISPLAY") == "")
Sys.setenv("DISPLAY" = ":0")
## this is to allow gfortran compiler to work
Sys.setenv("PATH" = paste(Sys.getenv("PATH"),":/usr/local/bin",sep = ""))
}## end "Aqua"
## de-dupe the environment on macOS (bug in Yosemite which affects things like PATH)
if (grepl("^darwin", R.version$os)) local({
## we have to de-dupe one at a time and re-check since the bug affects how
## environment modifications propagate
while(length(dupes <- names(Sys.getenv())[table(names(Sys.getenv())) > 1])) {
env <- dupes[1]
value <- Sys.getenv(env)
Sys.unsetenv(env) ## removes the dupes, good
.Internal(Sys.setenv(env, value)) ## wrapper requries named vector, a pain, hence internal
}
})
local({
tests_startup <- Sys.getenv("R_TESTS")
if(nzchar(tests_startup)) source(tests_startup)
})
R Site Profile: /Library/Frameworks/R.framework/Resources/etc/Rprofile.site
--------------------------------------------------
(File does not exist)
R User Profile: /Users/<me>/.Rprofile
--------------------------------------------------
(File does not exist)
R Site Environ: /Library/Frameworks/R.framework/Resources/etc/Renviron.site
--------------------------------------------------
(File does not exist)
R User Environ: /Users/<me>/.Renviron
--------------------------------------------------
(File does not exist)
R Temporary Directory
--------------------------------------------------
/var/folders/p9/rms8_8bx0175m4s7ryjcdkt80000gn/T//Rtmpmo4bNN
Files in R Temporary Directory
--------------------------------------------------
rs-graphics-9aae5ff6-49dc-4cd7-a5eb-55539f29e71d
Log file: /Users/<me>/.local/share/rstudio/log/rdesktop.log
--------------------------------------------------
2023-11-17T16:45:31.959Z ERROR Failed to load h t t p://127.0.0.1:31687: Error: ERR_CONNECTION_REFUSED (-102) loading 'h t t p://127.0.0.1:31687/'
2023-11-17T16:45:32.120Z ERROR ERR_FAILED (-2) loading 'file:///Applications/RStudio.app/Contents/Resources/app-x64/.webpack/renderer/splash/index.html'
2023-11-17T16:54:15.081Z ERROR Failed to load h t t p://127.0.0.1:19319: Error: ERR_CONNECTION_REFUSED (-102) loading 'h t t p://127.0.0.1:19319/'
2023-11-17T16:54:15.217Z ERROR ERR_FAILED (-2) loading 'file:///Applications/RStudio.app/Contents/Resources/app-x64/.webpack/renderer/splash/index.html'
2023-11-20T14:42:58.776Z ERROR Failed to load h t t p://127.0.0.1:16345: Error: ERR_CONNECTION_REFUSED (-102) loading 'h t t p://127.0.0.1:16345/'
2023-11-20T14:42:58.884Z ERROR ERR_FAILED (-2) loading 'file:///Applications/RStudio.app/Contents/Resources/app-x64/.webpack/renderer/splash/index.html'
2023-11-22T21:43:38.601Z ERROR Failed to load h t t p://127.0.0.1:31765: Error: ERR_FAILED (-2) loading 'h t t p://127.0.0.1:31765'
2023-11-28T19:29:13.813Z ERROR Failed to load h t t p://127.0.0.1:20743: Error: ERR_FAILED (-2) loading 'h t t p://127.0.0.1:20743'
2023-11-28T19:30:18.776Z ERROR Failed to load h t t p://127.0.0.1:13045: Error: ERR_FAILED (-2) loading 'h t t p://127.0.0.1:13045'
2023-11-28T19:30:51.781Z ERROR connect ENOENT rstudio
2023-11-28T19:35:22.698Z ERROR ERR_FAILED (-2) loading 'file:///Applications/RStudio.app/Contents/Resources/app-x64/.webpack/renderer/splash/index.html'
2023-11-28T19:35:54.013Z ERROR ERR_FAILED (-2) loading 'file:///Applications/RStudio.app/Contents/Resources/app-x64/.webpack/renderer/splash/index.html'
2023-11-28T20:51:02.111Z ERROR Failed to load h t t p://127.0.0.1:28593: Error: ERR_FAILED (-2) loading 'h t t p://127.0.0.1:28593'
2023-11-28T20:51:09.373Z ERROR ERR_FAILED (-2) loading 'file:///Applications/RStudio.app/Contents/Resources/app-x64/.webpack/renderer/splash/index.html'
2023-11-28T20:57:10.042Z ERROR Failed to load h t t p://127.0.0.1:10251: Error: ERR_FAILED (-2) loading 'h t t p://127.0.0.1:10251'
2023-11-28T20:59:10.041Z ERROR ERR_FAILED (-2) loading 'file:///Applications/RStudio.app/Contents/Resources/app-x64/.webpack/renderer/splash/index.html'
2023-11-28T21:10:06.085Z ERROR Failed to load h t t p://127.0.0.1:16651: Error: ERR_FAILED (-2) loading 'h t t p://127.0.0.1:16651'
2023-11-28T21:13:29.129Z ERROR ERR_FAILED (-2) loading 'file:///Applications/RStudio.app/Contents/Resources/app-x64/.webpack/renderer/splash/index.html'
2023-11-28T21:14:02.480Z ERROR Failed to load h t t p://127.0.0.1:43505: Error: ERR_FAILED (-2) loading 'h t t p://127.0.0.1:43505'
2023-11-28T21:14:54.995Z ERROR ERR_FAILED (-2) loading 'file:///Applications/RStudio.app/Contents/Resources/app-x64/.webpack/renderer/splash/index.html'
2023-11-28T21:18:24.587Z ERROR Failed to load h t t p://127.0.0.1:16241: Error: ERR_FAILED (-2) loading 'h t t p://127.0.0.1:16241'
2023-11-28T21:19:43.246Z ERROR ERR_FAILED (-2) loading 'file:///Applications/RStudio.app/Contents/Resources/app-x64/.webpack/renderer/splash/index.html'
2023-11-28T21:20:01.303Z ERROR Failed to load h t t p://127.0.0.1:14719: Error: ERR_FAILED (-2) loading 'h t t p://127.0.0.1:14719'
2023-11-28T21:26:30.962Z ERROR ERR_FAILED (-2) loading 'file:///Applications/RStudio.app/Contents/Resources/app-x64/.webpack/renderer/splash/index.html'
2023-11-28T21:28:03.110Z ERROR Failed to load h t t p://127.0.0.1:15855: Error: ERR_FAILED (-2) loading 'h t t p://127.0.0.1:15855'
2023-11-29T06:19:35.307Z ERROR ERR_FAILED (-2) loading 'file:///Applications/RStudio.app/Contents/Resources/app-x64/.webpack/renderer/splash/index.html'
2023-11-30T05:58:14.614Z ERROR Failed to load h t t p://127.0.0.1:13483: Error: ERR_FAILED (-2) loading 'h t t p://127.0.0.1:13483'
2023-11-30T06:19:28.734Z ERROR ERR_FAILED (-2) loading 'file:///Applications/RStudio.app/Contents/Resources/app-x64/.webpack/renderer/splash/index.html'
2023-11-30T07:32:56.507Z ERROR Failed to load h t t p://127.0.0.1:33299: Error: ERR_FAILED (-2) loading 'h t t p://127.0.0.1:33299'
2023-11-30T07:33:04.535Z ERROR ERR_FAILED (-2) loading 'file:///Applications/RStudio.app/Contents/Resources/app-x64/.webpack/renderer/splash/index.html'
2023-11-30T07:40:08.206Z ERROR Failed to load h t t p://127.0.0.1:44847: Error: ERR_FAILED (-2) loading 'h t t p://127.0.0.1:44847'
2023-11-30T08:05:45.858Z ERROR ERR_FAILED (-2) loading 'file:///Applications/RStudio.app/Contents/Resources/app-x64/.webpack/renderer/splash/index.html'
2023-11-30T08:37:59.984Z ERROR Failed to load h t t p://127.0.0.1:35281: Error: ERR_FAILED (-2) loading 'h t t p://127.0.0.1:35281'
2023-11-30T08:39:42.909Z ERROR ERR_FAILED (-2) loading 'file:///Applications/RStudio.app/Contents/Resources/app-x64/.webpack/renderer/splash/index.html'
2023-11-30T08:43:38.494Z ERROR Failed to load h t t p://127.0.0.1:8089: Error: ERR_FAILED (-2) loading 'h t t p://127.0.0.1:8089'
2023-11-30T08:56:47.324Z ERROR ERR_FAILED (-2) loading 'file:///Applications/RStudio.app/Contents/Resources/app-x64/.webpack/renderer/splash/index.html'
2023-11-30T09:10:22.364Z ERROR Failed to load h t t p://127.0.0.1:26451: Error: ERR_FAILED (-2) loading 'h t t p://127.0.0.1:26451'
2023-11-30T09:12:40.189Z ERROR ERR_FAILED (-2) loading 'file:///Applications/RStudio.app/Contents/Resources/app-x64/.webpack/renderer/splash/index.html'
2023-11-30T09:50:55.901Z ERROR Failed to load h t t p://127.0.0.1:8729: Error: ERR_FAILED (-2) loading 'h t t p://127.0.0.1:8729'
2023-11-30T09:51:24.812Z ERROR ERR_FAILED (-2) loading 'file:///Applications/RStudio.app/Contents/Resources/app-x64/.webpack/renderer/splash/index.html'
2023-11-30T09:51:44.584Z ERROR Failed to load h t t p://127.0.0.1:44827: Error: ERR_FAILED (-2) loading 'h t t p://127.0.0.1:44827'
2023-11-30T09:52:59.533Z ERROR ERR_FAILED (-2) loading 'file:///Applications/RStudio.app/Contents/Resources/app-x64/.webpack/renderer/splash/index.html'
2023-11-30T09:57:40.940Z ERROR Failed to load h t t p://127.0.0.1:12623: Error: ERR_FAILED (-2) loading 'h t t p://127.0.0.1:12623'
2023-11-30T09:57:51.420Z ERROR ERR_FAILED (-2) loading 'file:///Applications/RStudio.app/Contents/Resources/app-x64/.webpack/renderer/splash/index.html'
2023-11-30T10:01:04.091Z ERROR Failed to load h t t p://127.0.0.1:30461: Error: ERR_FAILED (-2) loading 'h t t p://127.0.0.1:30461'
2023-11-30T10:01:11.757Z ERROR ERR_FAILED (-2) loading 'file:///Applications/RStudio.app/Contents/Resources/app-x64/.webpack/renderer/splash/index.html'
2023-11-30T10:02:39.146Z ERROR Failed to load h t t p://127.0.0.1:24525: Error: ERR_FAILED (-2) loading 'h t t p://127.0.0.1:24525'
2023-11-30T10:02:51.968Z ERROR ERR_FAILED (-2) loading 'file:///Applications/RStudio.app/Contents/Resources/app-x64/.webpack/renderer/splash/index.html'
2023-11-30T10:03:41.344Z ERROR Failed to load h t t p://127.0.0.1:19357: Error: ERR_FAILED (-2) loading 'h t t p://127.0.0.1:19357'
2023-11-30T10:03:48.845Z ERROR ERR_FAILED (-2) loading 'file:///Applications/RStudio.app/Contents/Resources/app-x64/.webpack/renderer/splash/index.html'
Log file: /Users/<me>/.local/share/rstudio/log/rsession-<me>.log
--------------------------------------------------
2023-11-28T21:13:44.780379Z [rsession-<me>] WARNING ASSERTION FAILED: !posix::pthread_mutex_lock(&m); LOGGED FROM: void rstudio_boost::recursive_mutex::lock() /Users/user193109/opt/rstudio-tools/x86_64/boost/boost_1_78_0/include/boost/thread/pthread/recursive_mutex.hpp:108
User prefs: /Users/<me>/.config/rstudio/rstudio-prefs.json
--------------------------------------------------
{
"default_project_location": "/Volumes/Student/Jakob/R",
"jobs_tab_visibility": "shown"
}
System prefs: /etc/rstudio/rstudio-prefs.json
--------------------------------------------------
(Not Found)
User state: /Users/<me>/.local/share/rh ttpstudio/rstudio-desktop.json
--------------------------------------------------
{
"context_id": "3F111AB8",
"error_handler_type": "traceback"
}
What can you make out of this diagnostics report?
Hi again,
I found a solution in doing a clean install of the operative system. Please compare the two reports with each other to see if we can find the issue! I'm just at student doing statistics for my project and I don't have used eyes for code.
Hope this can help!
RStudio Diagnostics Report
RStudio Version
2023.09.1+494
Session Information
--------------------------------------------------
R version 4.3.2 (2023-10-31)
Platform: x86_64-apple-darwin20 (64-bit)
Running under: macOS Sonoma 14.1.1
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/lib/libRlapack.dylib; LAPACK version 3.11.0
locale:
[1] sv_SE.UTF-8/sv_SE.UTF-8/sv_SE.UTF-8/C/sv_SE.UTF-8/sv_SE.UTF-8
time zone: America/Los_Angeles
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.3.2 tools_4.3.2
System Information
--------------------------------------------------
sysname : Darwin
release : 23.1.0
version : Darwin Kernel Version 23.1.0: Mon Oct 9 21:27:27 PDT 2023; root:xnu-10002.41.9~6/RELEASE_X86_64
nodename : MacBook-Air-som-tillhor-Jakob.local
machine : x86_64
login : <me>
user : <me>
effective_user : <me>
Platform Information
--------------------------------------------------
OS.type : unix
file.sep : /
dynlib.ext : .so
GUI : X11
endian : little
pkgType : mac.binary.big-sur-x86_64
path.sep : :
r_arch :
Environment Variables
--------------------------------------------------
_ : /Applications/RStudio.app/Contents/MacOS/RStudio
__CF_USER_TEXT_ENCODING : 0x1F5:0x0:0x7
__CFBundleIdentifier : com.apple.Terminal
CLICOLOR_FORCE : 1
DYLD_FALLBACK_LIBRARY_PATH : /Library/Frameworks/R.framework/Resources/lib:/Library/Java/JavaVirtualMachines/jdk-11.0.18+10/Contents/Home/lib/server:/var/folders/20/wttpx6jn6zsdyk_dfhk3cfz80000gn/T/rstudio-fallback-library-path-1121620724
EDITOR : vi
GIT_ASKPASS : rpostback-askpass
HOME : /Users/<me>
LANG : sv_SE.UTF-8
LC_CTYPE : sv_SE.UTF-8
LN_S : ln -s
LOGNAME : *** redacted ***
MAKE : make
OLDPWD : /Users/<me>
ORIGINAL_XDG_CURRENT_DESKTOP : undefined
PAGER : /usr/bin/less
PATH : /usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/<me>/Applications/quarto/bin:/Library/TeX/texbin:/usr/texbin:/Applications/RStudio.app/Contents/Resources/app/quarto/bin:/Applications/RStudio.app/Contents/Resources/app/bin/postback
PWD : *** redacted ***
PYTHONIOENCODING : utf-8
R_ARCH :
R_BROWSER : /usr/bin/open
R_BZIPCMD : /usr/bin/bzip2
R_CLI_HAS_HYPERLINK_IDE_HELP : true
R_CLI_HAS_HYPERLINK_IDE_RUN : true
R_CLI_HAS_HYPERLINK_IDE_VIGNETTE : true
R_DOC_DIR : /Library/Frameworks/R.framework/Resources/doc
R_GZIPCMD : /usr/bin/gzip
R_HOME : /Library/Frameworks/R.framework/Resources
R_INCLUDE_DIR : /Library/Frameworks/R.framework/Resources/include
R_LIBS_SITE : /Library/Frameworks/R.framework/Resources/site-library
R_LIBS_USER : /Users/<me>/Library/R/x86_64/4.3/library
R_PAPERSIZE : a4
R_PDFVIEWER : /usr/bin/open
R_PLATFORM : x86_64-apple-darwin20
R_PRINTCMD : lpr
R_QPDF : /Library/Frameworks/R.framework/Resources/bin/qpdf
R_RD4PDF : times,inconsolata,hyper
R_RUNTIME :
R_SESSION_TMPDIR : /var/folders/20/wttpx6jn6zsdyk_dfhk3cfz80000gn/T//RtmpqNJ8ei
R_SHARE_DIR : /Library/Frameworks/R.framework/Resources/share
R_STRIP_SHARED_LIB : strip -x
R_STRIP_STATIC_LIB : strip -S
R_SYSTEM_ABI : macos,gcc,gxx,gfortran,gfortran
R_TEXI2DVICMD : /opt/R/x86_64/bin/texi2dvi
R_UNZIPCMD : /usr/bin/unzip
R_ZIPCMD : /usr/bin/zip
RMARKDOWN_MATHJAX_PATH : /Applications/RStudio.app/Contents/Resources/app/resources/mathjax-27
RS_LOG_LEVEL : WARN
RS_RPOSTBACK_PATH : /Applications/RStudio.app/Contents/Resources/app/bin/rpostback
RS_SHARED_SECRET : *** redacted ***
RSTUDIO : 1
RSTUDIO_CLI_HYPERLINKS : true
RSTUDIO_CONSOLE_COLOR : 256
RSTUDIO_CONSOLE_WIDTH : 80
RSTUDIO_DESKTOP_EXE : /Applications/RStudio.app/Contents/MacOS/RStudio
RSTUDIO_FALLBACK_LIBRARY_PATH : /var/folders/20/wttpx6jn6zsdyk_dfhk3cfz80000gn/T/rstudio-fallback-library-path-1121620724
RSTUDIO_PANDOC : /Applications/RStudio.app/Contents/Resources/app/quarto/bin/tools
RSTUDIO_PROGRAM_MODE : desktop
RSTUDIO_SESSION_PID : 1534
RSTUDIO_SESSION_PORT : 22667
RSTUDIO_USER_IDENTITY : <me>
RSTUDIO_WINUTILS : bin/winutils
SED : /usr/bin/sed
SHELL : /bin/zsh
SHLVL : 1
SSH_ASKPASS : rpostback-askpass
SSH_AUTH_SOCK : *** redacted ***
TAR : /usr/bin/tar
TERM : xterm-256color
TERM_PROGRAM : Apple_Terminal
TERM_PROGRAM_VERSION : 452
TERM_SESSION_ID : B5ED324C-EE73-4657-B6F9-F2FEEF0996EA
TMPDIR : /var/folders/20/wttpx6jn6zsdyk_dfhk3cfz80000gn/T/
USER : <me>
XPC_FLAGS : 0x0
XPC_SERVICE_NAME : 0
R Version
--------------------------------------------------
platform : x86_64-apple-darwin20
arch : x86_64
os : darwin20
system : x86_64, darwin20
status :
major : 4
minor : 3.2
year : 2023
month : 10
day : 31
svn rev : 85441
language : R
version.string : R version 4.3.2 (2023-10-31)
nickname : Eye Holes
R Home
--------------------------------------------------
/Library/Frameworks/R.framework/Resources
R Search Path
--------------------------------------------------
.GlobalEnv
tools:rstudio
package:stats
package:graphics
package:grDevices
package:utils
package:datasets
package:methods
Autoloads
package:base
R Library Paths
--------------------------------------------------
/Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library
Loaded Packages
--------------------------------------------------
base : /Library/Frameworks/R.framework/Resources/library/base
compiler : /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library/compiler
datasets : /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library/datasets
graphics : /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library/graphics
grDevices : /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library/grDevices
methods : /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library/methods
stats : /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library/stats
tools : /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library/tools
utils : /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library/utils
Installed Packages
--------------------------------------------------
Package LibPath Version
1 base /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 4.3.2
2 boot /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 1.3-28.1
3 class /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 7.3-22
4 cluster /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 2.1.4
5 codetools /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 0.2-19
6 compiler /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 4.3.2
7 datasets /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 4.3.2
8 foreign /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 0.8-85
9 graphics /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 4.3.2
10 grDevices /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 4.3.2
11 grid /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 4.3.2
12 KernSmooth /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 2.23-22
13 lattice /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 0.21-9
14 MASS /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 7.3-60
15 Matrix /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 1.6-1.1
16 methods /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 4.3.2
17 mgcv /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 1.9-0
18 nlme /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 3.1-163
19 nnet /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 7.3-19
20 parallel /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 4.3.2
21 rpart /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 4.1.21
22 spatial /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 7.3-17
23 splines /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 4.3.2
24 stats /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 4.3.2
25 stats4 /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 4.3.2
26 survival /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 3.5-7
27 tcltk /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 4.3.2
28 tools /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 4.3.2
29 utils /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library 4.3.2
R System Profile: /Library/Frameworks/R.framework/Resources/library/base/R/Rprofile
--------------------------------------------------
### This is the system Rprofile file. It is always run on startup.
### Additional commands can be placed in site or user Rprofile files
### (see ?Rprofile).
### Copyright (C) 1995-2022 The R Core Team
### Notice that it is a bad idea to use this file as a template for
### personal startup files, since things will be executed twice and in
### the wrong environment (user profiles are run in .GlobalEnv).
.GlobalEnv <- globalenv()
attach(NULL, name = "Autoloads")
.AutoloadEnv <- as.environment(2)
assign(".Autoloaded", NULL, envir = .AutoloadEnv)
T <- TRUE
F <- FALSE
R.version <- structure(R.Version(), class = "simple.list")
version <- R.version # for S compatibility
## for backwards compatibility only
R.version.string <- R.version$version.string
## NOTA BENE: options() for non-base package functionality are in places like
## --------- ../utils/R/zzz.R
options(keep.source = interactive())
options(warn = 0)
# options(repos = c(CRAN="@CRAN@"))
# options(BIOC = "http://www.bioconductor.org")
## setting from an env variable added in 4.0.2
local({to <- as.integer(Sys.getenv("R_DEFAULT_INTERNET_TIMEOUT", 60))
if (is.na(to) || to <= 0) to <- 60L
options(timeout = to)
})
options(encoding = "native.enc")
options(show.error.messages = TRUE)
## keep in sync with PrintDefaults() in ../../main/print.c :
options(scipen = 0)
options(max.print = 99999)# max. #{entries} in internal printMatrix()
options(add.smooth = TRUE)# currently only used in 'plot.lm'
if(!interactive())
options(showErrorCalls = TRUE)
local({dp <- Sys.getenv("R_DEFAULT_PACKAGES")
if(identical(dp, "")) ## it fact methods is done first
dp <- c("datasets", "utils", "grDevices", "graphics",
"stats", "methods")
else if(identical(dp, "NULL")) dp <- character(0)
else dp <- strsplit(dp, ",")[[1]]
dp <- sub("[[:blank:]]*([[:alnum:]]+)", "\\1", dp) # strip whitespace
options(defaultPackages = dp)
})
## Expand R_LIBS_* environment variables.
Sys.setenv(R_LIBS_SITE =
.expand_R_libs_env_var(Sys.getenv("R_LIBS_SITE")))
Sys.setenv(R_LIBS_USER =
.expand_R_libs_env_var(Sys.getenv("R_LIBS_USER")))
local({
if(nzchar(tl <- Sys.getenv("R_SESSION_TIME_LIMIT_CPU")))
setSessionTimeLimit(cpu = tl)
if(nzchar(tl <- Sys.getenv("R_SESSION_TIME_LIMIT_ELAPSED")))
setSessionTimeLimit(elapsed = tl)
})
.First.sys <- function()
{
for(pkg in getOption("defaultPackages")) {
res <- require(pkg, quietly = TRUE, warn.conflicts = FALSE,
character.only = TRUE)
if(!res)
warning(gettextf('package %s in options("defaultPackages") was not found', sQuote(pkg)),
call. = FALSE, domain = NA)
}
}
## called at C level in the startup process prior to .First.sys
.OptRequireMethods <- function()
{
pkg <- "methods" # done this way to avoid R CMD check warning
if(pkg %in% getOption("defaultPackages"))
if(!require(pkg, quietly = TRUE, warn.conflicts = FALSE,
character.only = TRUE))
warning('package "methods" in options("defaultPackages") was not found',
call. = FALSE)
}
if(nzchar(Sys.getenv("R_BATCH"))) {
.Last.sys <- function()
{
cat("> proc.time()\n")
print(proc.time())
}
## avoid passing on to spawned R processes
## A system has been reported without Sys.unsetenv, so try this
try(Sys.setenv(R_BATCH=""))
}
local({
if(nzchar(rv <- Sys.getenv("_R_RNG_VERSION_")))
suppressWarnings(RNGversion(rv))
})
.sys.timezone <- NA_character_
local({
## create an active binding for .Library.site, so that it can be
## modified after the base environment is locked
## remove the binding in the lazyload data base
.Internal(mkUnbound(as.name(".Library.site")))
siteLibrary <- character()
slfun <- function(v) {
if (!missing(v))
siteLibrary <<- v
siteLibrary
}
makeActiveBinding(".Library.site", slfun, baseenv())
## make .Library.site accessible also from global environment to
## preserve functionality of site profiles assigning to it directly
## (originally, site profiles were run in base environment)
makeActiveBinding(".Library.site", slfun, globalenv())
})
###-*- R -*- Unix Specific ----
.Library <- file.path(R.home(), "library")
.Library.site <- Sys.getenv("R_LIBS_SITE") # This is set in Renviron.
.Library.site <-
if(.Library.site == "NULL") character() else unlist(strsplit(.Library.site, ":"))
.Library.site <- .Library.site[dir.exists(.Library.site)]
local({
libs <- Sys.getenv("R_LIBS_USER") # This is set in Renviron.
libs <- if(libs == "NULL") character() else unlist(strsplit(libs, ":"))
## .libPaths filters on existence.
invisible(.libPaths(c(unlist(strsplit(Sys.getenv("R_LIBS"), ":")),
libs)))
})
local({
popath <- Sys.getenv("R_TRANSLATIONS", "")
if(!nzchar(popath)) {
paths <- file.path(.libPaths(), "translations", "DESCRIPTION")
popath <- dirname(paths[file.exists(paths)][1])
}
bindtextdomain("R", popath)
bindtextdomain("R-base", popath)
assign(".popath", popath, .BaseNamespaceEnv)
})
local({
## we distinguish between R_PAPERSIZE as set by the user and by configure
papersize <- Sys.getenv("R_PAPERSIZE_USER")
if(!nchar(papersize)) {
lcpaper <- Sys.getlocale("LC_PAPER") # might be null: OK as nchar is 0
papersize <- if(nchar(lcpaper))
if(length(grep("(_US|_CA)", lcpaper))) "letter" else "a4"
else Sys.getenv("R_PAPERSIZE")
}
options(papersize = papersize,
printcmd = Sys.getenv("R_PRINTCMD"),
dvipscmd = Sys.getenv("DVIPS", "dvips"),
texi2dvi = Sys.getenv("R_TEXI2DVICMD"),
browser = Sys.getenv("R_BROWSER"),
pager = file.path(R.home(), "bin", "pager"),
pdfviewer = Sys.getenv("R_PDFVIEWER"),
useFancyQuotes = TRUE)
})
## non standard settings for the R.app GUI of the macOS port
if(.Platform$GUI == "AQUA") {
## this is set to let RAqua use both X11 device and X11/TclTk
if (Sys.getenv("DISPLAY") == "")
Sys.setenv("DISPLAY" = ":0")
## this is to allow gfortran compiler to work
Sys.setenv("PATH" = paste(Sys.getenv("PATH"),":/usr/local/bin",sep = ""))
}## end "Aqua"
## de-dupe the environment on macOS (bug in Yosemite which affects things like PATH)
if (grepl("^darwin", R.version$os)) local({
## we have to de-dupe one at a time and re-check since the bug affects how
## environment modifications propagate
while(length(dupes <- names(Sys.getenv())[table(names(Sys.getenv())) > 1])) {
env <- dupes[1]
value <- Sys.getenv(env)
Sys.unsetenv(env) ## removes the dupes, good
.Internal(Sys.setenv(env, value)) ## wrapper requries named vector, a pain, hence internal
}
})
local({
tests_startup <- Sys.getenv("R_TESTS")
if(nzchar(tests_startup)) source(tests_startup)
})
R Site Profile: /Library/Frameworks/R.framework/Resources/etc/Rprofile.site
--------------------------------------------------
(File does not exist)
R User Profile: /Users/<me>/.Rprofile
--------------------------------------------------
(File does not exist)
R Site Environ: /Library/Frameworks/R.framework/Resources/etc/Renviron.site
--------------------------------------------------
(File does not exist)
R User Environ: /Users/<me>/.Renviron
--------------------------------------------------
(File does not exist)
R Temporary Directory
--------------------------------------------------
/var/folders/20/wttpx6jn6zsdyk_dfhk3cfz80000gn/T//RtmpqNJ8ei
Files in R Temporary Directory
--------------------------------------------------
rs-graphics-0fc1af06-b8f2-44be-8b88-aee4a5448e1e
Log file: /Users/<me>/.local/share/rstudio/log/rdesktop.log
--------------------------------------------------
(Empty)
Log file: /Users/<me>/.local/share/rstudio/log/rsession-<me>.log
--------------------------------------------------
(Not Found)
User prefs: /Users/<me>/.config/rstudio/rstudio-prefs.json
--------------------------------------------------
{}
System prefs: /etc/rstudio/rstudio-prefs.json
--------------------------------------------------
(Not Found)
User state: /Users/<me>/.local/share/rstudio/rstudio-desktop.json
--------------------------------------------------
{
"context_id": "C98607C9",
"error_handler_type": "traceback"
}
Using Chat-GPT here are some points that differ between the sessions. Please help me understand why RStudio doesn't work:
To identify the differences and potential issues between the two R sessions, we can focus on key areas such as environment variables, library paths, loaded packages, and system information. Here are some points to consider:
- Environment Variables:
- Check if there are any crucial differences in environment variables between the two sessions. Pay attention to variables like
R_LIBS_SITE
andR_LIBS_USER
.
- Library Paths:
- Confirm that the library paths for installed packages are set correctly in both sessions. Look for any discrepancies in the paths specified by
Sys.getenv("R_LIBS_SITE")
andSys.getenv("R_LIBS_USER")
.
- Loaded Packages:
- Examine the loaded packages in both sessions. Ensure that the required packages are loaded successfully in the problematic session. Look for any error messages related to missing or incompatible packages.
- System Information:
- Compare the system information, including the R version, architecture, and platform details. Ensure that the problematic session is using the correct R version and is compatible with the operating system.
- R Session Configuration:
- Check for any custom configurations or startup files (e.g.,
.Rprofile
,.Renviron
, or RStudio preferences) that might affect the behavior of the R session.
- Temporary Directory:
- Verify that the temporary directory used by R is accessible and has the necessary permissions. Issues with temporary directories can sometimes lead to session problems.
- Log Files:
- Inspect any available log files, such as the
rdesktop.log
andrsession-<username>.log
files. Look for error messages or warnings that might provide insights into the issue.
- User Preferences:
- Check for any differences in user preferences or configurations, especially if RStudio is involved. Review the contents of
~/.config/rstudio/rstudio-prefs.json
for any variations.
Sorry for long post!
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.