why couldn't run the code in markdown

I am unable to run code in the Source pane. When I select the code and press “Run,” nothing happens—the code doesn’t execute, and it doesn’t appear in the Console as it normally would. However, the same code works perfectly if I enter it directly into the Console.

The same code was working fine yesterday. I had this problem when I opened r studio this morning.

I uninstalled and reinstalled R and R Studio several times but still it doesn't work.

System Information:

  • RStudio Edition: Desktop

  • Computer System: macOS Sonoma 14.6.1

  • R Version: R version 4.4.1 (2024-06-14)

  • RStudio Version: RStudio 2024.04.2 + 764 “Chocolate Cosmos” Release (e4392fc9ddc21961fd1d0efd47484b43f07a4177, 2024-06-05) for macOS

  • Browser Information: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2024.04.2+764 Chrome/120.0.6099.291 Electron/28.3.1 Safari/537.36, Quarto 1.4.555

  • Your sessionInfo():

sessionInfo()
R version 4.4.1 (2024-06-14)
Platform: aarch64-apple-darwin20
Running under: macOS Sonoma 14.6.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.4-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.12.0

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: Asia/Shanghai
tzcode source: internal

attached base packages:
[1] stats graphics grDevices utils datasets methods base

loaded via a namespace (and not attached):
[1] Matrix_1.7-0 gtable_0.3.5 dplyr_1.1.4
[4] compiler_4.4.1 tidyselect_1.2.1 Rcpp_1.0.13
[7] splines_4.4.1 scales_1.3.0 boot_1.3-30
[10] yaml_2.3.10 fastmap_1.2.0 lmerTest_3.1-3
[13] lattice_0.22-6 ggplot2_3.5.1 R6_2.5.1
[16] generics_0.1.3 knitr_1.48 MASS_7.3-60.2
[19] ggrepel_0.9.5 tibble_3.2.1 nloptr_2.1.1
[22] munsell_0.5.1 minqa_1.2.8 pillar_1.9.0
[25] rlang_1.1.4 utf8_1.2.4 xfun_0.47
[28] cli_3.6.3 magrittr_2.0.3 digest_0.6.37
[31] grid_4.4.1 rstudioapi_0.16.0 lme4_1.1-35.5
[34] lifecycle_1.0.4 nlme_3.1-164 vctrs_0.6.5
[37] evaluate_0.24.0 glue_1.7.0 numDeriv_2016.8-1.1
[40] fansi_1.0.6 colorspace_2.1-1 pacman_0.5.1
[43] rmarkdown_2.28 tools_4.4.1 pkgconfig_2.0.3
[46] htmltools_0.5.8.1

  • RStudio crash report: I do not find the RStudio Desktop IDE crash reports under "~/Library/Logs/CrashReporter"

  • RStudio application log files:

RStudio Diagnostics Report

WARNING: This report may contain sensitive security information and / or
personally identifiable information. Please audit the below and redact any
sensitive information before submitting your diagnostics report.

Generated: Wed Sep 11 10:12:18 2024

RStudio Version

2024.04.2+764

Session Information

R version 4.4.1 (2024-06-14)
Platform: aarch64-apple-darwin20
Running under: macOS Sonoma 14.6.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.4-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.12.0

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: Asia/Shanghai
tzcode source: internal

attached base packages:
[1] stats graphics grDevices utils datasets methods base

loaded via a namespace (and not attached):
[1] Matrix_1.7-0 gtable_0.3.5 dplyr_1.1.4
[4] compiler_4.4.1 tidyselect_1.2.1 Rcpp_1.0.13
[7] splines_4.4.1 scales_1.3.0 boot_1.3-30
[10] yaml_2.3.10 fastmap_1.2.0 lmerTest_3.1-3
[13] lattice_0.22-6 ggplot2_3.5.1 R6_2.5.1
[16] generics_0.1.3 knitr_1.48 MASS_7.3-60.2
[19] ggrepel_0.9.5 tibble_3.2.1 nloptr_2.1.1
[22] munsell_0.5.1 minqa_1.2.8 pillar_1.9.0
[25] rlang_1.1.4 utf8_1.2.4 xfun_0.47
[28] cli_3.6.3 magrittr_2.0.3 digest_0.6.37
[31] grid_4.4.1 rstudioapi_0.16.0 lme4_1.1-35.5
[34] lifecycle_1.0.4 nlme_3.1-164 vctrs_0.6.5
[37] evaluate_0.24.0 glue_1.7.0 numDeriv_2016.8-1.1
[40] fansi_1.0.6 colorspace_2.1-1 pacman_0.5.1
[43] rmarkdown_2.28 tools_4.4.1 pkgconfig_2.0.3
[46] htmltools_0.5.8.1

System Information

sysname : Darwin
release : 23.6.0
version : Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:04 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T8122
nodename : KaideMacBook-Air.local
machine : arm64
login : root
user : kaisu
effective_user : kaisu

Platform Information

OS.type : unix
file.sep : /
dynlib.ext : .so
GUI : RStudio
endian : little
pkgType : mac.binary.big-sur-arm64
path.sep : :
r_arch :

Environment Variables

__CF_USER_TEXT_ENCODING : 0x1F5:0x19:0x34
__CFBundleIdentifier : com.rstudio.desktop
CLICOLOR_FORCE : 1
COMMAND_MODE : unix2003
DISPLAY : /private/tmp/com.apple.launchd.CuwCVwDpmd/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/xj/jdmy215543q6gv8k64jdj3q00000gn/T/rstudio-fallback-library-path-27191730
EDITOR : vi
GIT_ASKPASS : rpostback-askpass
HOME : /Users/kaisu
LANG : en_US.UTF-8
LC_CTYPE : en_US.UTF-8
LN_S : ln -s
LOGNAME : *** redacted ***
MAKE : make
MallocNanoZone : 0
MPLENGINE : tkAgg
ORIGINAL_XDG_CURRENT_DESKTOP : undefined
PAGER : /usr/bin/less
PATH : /usr/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:/Library/Apple/usr/bin:/Applications/quarto/bin:/Library/TeX/texbin:/usr/texbin:/Applications/RStudio.app/Contents/Resources/app/quarto/bin:/Applications/RStudio.app/Contents/Resources/app/bin/postback
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/kaisu/Library/R/arm64/4.4/library
R_PAPERSIZE : a4
R_PDFVIEWER : /usr/bin/open
R_PLATFORM : aarch64-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/xj/jdmy215543q6gv8k64jdj3q00000gn/T//Rtmp9UcOz2
R_SHARE_DIR : /Library/Frameworks/R.framework/Resources/share
R_STRIP_SHARED_LIB : strip -x
R_STRIP_STATIC_LIB : strip -S
R_TEXI2DVICMD : /opt/R/arm64/bin/texi2dvi
R_UNZIPCMD : /usr/bin/unzip
R_ZIPCMD : /usr/bin/zip
RETICULATE_PYTHON_FALLBACK : /usr/bin/python3
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 : 83
RSTUDIO_DESKTOP_EXE : /Applications/RStudio.app/Contents/MacOS/RStudio
RSTUDIO_FALLBACK_LIBRARY_PATH : /var/folders/xj/jdmy215543q6gv8k64jdj3q00000gn/T/rstudio-fallback-library-path-27191730
RSTUDIO_PANDOC : /Applications/RStudio.app/Contents/Resources/app/quarto/bin/tools/aarch64
RSTUDIO_PROGRAM_MODE : desktop
RSTUDIO_SESSION_PID : 2813
RSTUDIO_SESSION_PORT : 25841
RSTUDIO_USER_IDENTITY : kaisu
SED : /usr/bin/sed
SHELL : /bin/zsh
SSH_ASKPASS : rpostback-askpass
SSH_AUTH_SOCK : *** redacted ***
TAR : /usr/bin/tar
TERM : xterm-256color
TMPDIR : /var/folders/xj/jdmy215543q6gv8k64jdj3q00000gn/T/
USER : kaisu
XPC_FLAGS : 0x0
XPC_SERVICE_NAME : application.com.rstudio.desktop.1539451.1539470

R Version

platform : aarch64-apple-darwin20
arch : aarch64
os : darwin20
system : aarch64, darwin20
status :
major : 4
minor : 4.1
year : 2024
month : 06
day : 14
svn rev : 86737
language : R
version.string : R version 4.4.1 (2024-06-14)
nickname : Race for Your Life

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.4-arm64/Resources/library

Loaded Packages

base : /Library/Frameworks/R.framework/Resources/library/base
boot : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/boot
cli : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/cli
colorspace : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/colorspace
compiler : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/compiler
datasets : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/datasets
digest : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/digest
dplyr : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/dplyr
evaluate : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/evaluate
fansi : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/fansi
fastmap : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/fastmap
generics : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/generics
ggplot2 : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/ggplot2
ggrepel : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/ggrepel
glue : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/glue
graphics : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/graphics
grDevices : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/grDevices
grid : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/grid
gtable : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/gtable
htmltools : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/htmltools
knitr : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/knitr
lattice : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/lattice
lifecycle : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/lifecycle
lme4 : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/lme4
lmerTest : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/lmerTest
magrittr : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/magrittr
MASS : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/MASS
Matrix : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/Matrix
methods : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/methods
minqa : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/minqa
munsell : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/munsell
nlme : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/nlme
nloptr : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/nloptr
numDeriv : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/numDeriv
pacman : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/pacman
pillar : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/pillar
pkgconfig : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/pkgconfig
R6 : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/R6
Rcpp : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/Rcpp
rlang : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/rlang
rmarkdown : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/rmarkdown
rstudioapi : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/rstudioapi
scales : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/scales
splines : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/splines
stats : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/stats
tibble : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/tibble
tidyselect : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/tidyselect
tools : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/tools
utf8 : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/utf8
utils : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/utils
vctrs : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/vctrs
xfun : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/xfun
yaml : /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/yaml

Installed Packages

         Package                                                              LibPath    Version

1 askpass /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.2.0
2 backports /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.5.0
3 base /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 4.4.1
4 base64enc /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.1-3
5 BH /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.84.0-0
6 bitops /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.0-8
7 boot /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.3-30
8 bslib /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.8.0
9 cachem /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.1.0
10 Cairo /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.6-2
11 cellranger /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.1.0
12 checkmate /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 2.3.2
13 chron /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 2.3-61
14 class /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 7.3-22
15 cli /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 3.6.3
16 cluster /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 2.1.6
17 codetools /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.2-20
18 colorspace /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 2.1-1
19 compiler /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 4.4.1
20 corrplot /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.94
21 cowplot /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.1.3
22 cpp11 /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.5.0
23 crayon /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.5.3
24 curl /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 5.2.2
25 data.table /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.16.0
26 datasets /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 4.4.1
27 digest /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.6.37
28 dplyr /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.1.4
29 evaluate /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.24.0
30 fansi /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.0.6
31 farver /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 2.1.2
32 fastmap /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.2.0
33 fontawesome /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.5.2
34 foreign /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.8-86
35 Formula /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.2-5
36 fs /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.6.4
37 gender /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.6.0
38 generics /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.1.3
39 ggplot2 /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 3.5.1
40 ggrepel /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.9.5
41 ggthemes /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 5.1.0
42 glue /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.7.0
43 GPArotation /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 2024.3-1
44 graphics /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 4.4.1
45 grDevices /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 4.4.1
46 grid /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 4.4.1
47 gridExtra /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 2.3
48 gtable /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.3.5
49 highr /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.11
50 Hmisc /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 5.1-3
51 hms /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.1.3
52 htmlTable /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 2.4.3
53 htmltools /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.5.8.1
54 htmlwidgets /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.6.4
55 httr /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.4.7
56 igraph /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 2.0.3
57 isoband /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.2.7
58 jquerylib /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.1.4
59 jsonlite /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.8.8
60 KernSmooth /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 2.23-24
61 knitr /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.48
62 labeling /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.4.3
63 lattice /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.22-6
64 lemon /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.4.9
65 lifecycle /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.0.4
66 lme4 /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.1-35.5
67 lmerTest /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 3.1-3
68 lubridate /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.9.3
69 magrittr /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 2.0.3
70 MASS /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 7.3-60.2
71 Matrix /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.7-0
72 memoise /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 2.0.1
73 methods /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 4.4.1
74 mgcv /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.9-1
75 mime /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.12
76 minqa /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.2.8
77 mnormt /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 2.1.1
78 munsell /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.5.1
79 nlme /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 3.1-164
80 nloptr /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 2.1.1
81 NLP /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.3-0
82 nnet /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 7.3-19
83 numDeriv /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 2016.8-1.1
84 openNLP /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.2-7
85 openNLPdata /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.5.3-5
86 openssl /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 2.2.1
87 openxlsx /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 4.2.6.1
88 pacman /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.5.1
89 parallel /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 4.4.1
90 pillar /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.9.0
91 pkgconfig /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 2.0.3
92 plotrix /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 3.8-4
93 plyr /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.8.9
94 prettyunits /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.2.0
95 progress /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.2.3
96 psych /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 2.4.6.26
97 purrr /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.0.2
98 qdap /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 2.4.6
99 qdapDictionaries /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.0.7
100 qdapRegex /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.7.8
101 qdapTools /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.3.7
102 R6 /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 2.5.1
103 ragg /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.3.2
104 rappdirs /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.3.3
105 RColorBrewer /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.1-3
106 Rcpp /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.0.13
107 RcppEigen /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.3.4.0.2
108 RCurl /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.98-1.16
109 readxl /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.4.3
110 rematch /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 2.0.0
111 remotes /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 2.5.0
112 reshape2 /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.4.4
113 rJava /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.0-11
114 rlang /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.1.4
115 rmarkdown /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 2.28
116 rpart /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 4.1.23
117 rstudioapi /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.16.0
118 sass /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.4.9
119 scales /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.3.0
120 slam /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.1-52
121 spatial /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 7.3-17
122 splines /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 4.4.1
123 stats /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 4.4.1
124 stats4 /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 4.4.1
125 stringdist /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.9.12
126 stringi /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.8.4
127 stringr /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.5.1
128 survival /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 3.6-4
129 sys /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 3.4.2
130 systemfonts /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.1.0
131 tcltk /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 4.4.1
132 textshaping /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.4.0
133 tibble /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 3.2.1
134 tidyr /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.3.1
135 tidyselect /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.2.1
136 timechange /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.3.0
137 tinytex /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.52
138 tm /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.7-14
139 tools /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 4.4.1
140 utf8 /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.2.4
141 utils /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 4.4.1
142 vctrs /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.6.5
143 venneuler /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.1-4
144 viridis /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.6.5
145 viridisLite /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.4.2
146 withr /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 3.0.1
147 wordcloud /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 2.6
148 xfun /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 0.47
149 XML /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 3.99-0.17
150 xml2 /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 1.3.6
151 yaml /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 2.3.10
152 zip /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library 2.3.1

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-2023 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)
options(catch.script.errors = FALSE)

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/kaisu/.Rprofile

(File does not exist)

R Site Environ: /Library/Frameworks/R.framework/Resources/etc/Renviron.site

(File does not exist)

R User Environ: /Users/kaisu/.Renviron

(File does not exist)

R Temporary Directory

/var/folders/xj/jdmy215543q6gv8k64jdj3q00000gn/T//Rtmp9UcOz2

Files in R Temporary Directory

rs-graphics-54b38d90-c74d-45bb-adf3-576d4c594f53

Log file: /Users/kaisu/.local/share/rstudio/log/rdesktop.log

(Empty)

Log file: /Users/kaisu/.local/share/rstudio/log/rsession-kaisu.log

2024-09-10T14:50:55.064891Z [rsession-kaisu] WARNING ASSERTION FAILED: !posix::pthread_mutex_lock(&m); LOGGED FROM: void rstudio_boost::recursive_mutex::lock() /Users/user193109/opt/rstudio-tools/arm64/boost/boost_1_83_0/include/boost/thread/pthread/recursive_mutex.hpp:108
2024-09-10T14:50:55.064891Z [rsession-kaisu] WARNING ASSERTION FAILED: !posix::pthread_mutex_lock(&m); LOGGED FROM: void rstudio_boost::recursive_mutex::lock() /Users/user193109/opt/rstudio-tools/arm64/boost/boost_1_83_0/include/boost/thread/pthread/recursive_mutex.hpp:108
2024-09-10T14:50:55.066908Z [rsession-kaisu] WARNING ASSERTION FAILED: !posix::pthread_mutex_unlock(&m); LOGGED FROM: void rstudio_boost::recursive_mutex::unlock() /Users/user193109/opt/rstudio-tools/arm64/boost/boost_1_83_0/include/boost/thread/pthread/recursive_mutex.hpp:113
2024-09-10T14:50:55.066908Z [rsession-kaisu] WARNING ASSERTION FAILED: !posix::pthread_mutex_unlock(&m); LOGGED FROM: void rstudio_boost::recursive_mutex::unlock() /Users/user193109/opt/rstudio-tools/arm64/boost/boost_1_83_0/include/boost/thread/pthread/recursive_mutex.hpp:113
2024-09-11T01:03:51.747466Z [rsession-kaisu] ERROR system error 92 (Illegal byte sequence) [str: 一, len: 3, from: UTF-8, to: ISO8859-1]; OCCURRED AT core::Error rstudio::r::util::(anonymous namespace)::iconvstrImpl(const std::string &, const std::string &, const std::string &, bool, std::string *) src/cpp/r/RUtil.cpp:268; LOGGED FROM: Error rstudio::session::modules::spelling::(anonymous namespace)::checkSpelling(const json::JsonRpcRequest &, json::JsonRpcResponse *) src/cpp/session/modules/SessionSpelling.cpp:225
2024-09-11T01:03:51.747466Z [rsession-kaisu] ERROR system error 92 (Illegal byte sequence) [str: 一, len: 3, from: UTF-8, to: ISO8859-1]; OCCURRED AT core::Error rstudio::r::util::(anonymous namespace)::iconvstrImpl(const std::string &, const std::string &, const std::string &, bool, std::string *) src/cpp/r/RUtil.cpp:268; LOGGED FROM: Error rstudio::session::modules::spelling::(anonymous namespace)::checkSpelling(const json::JsonRpcRequest &, json::JsonRpcResponse *) src/cpp/session/modules/SessionSpelling.cpp:225
2024-09-11T01:16:48.506642Z [rsession-kaisu] ERROR system error 92 (Illegal byte sequence) [str: 一, len: 3, from: UTF-8, to: ISO8859-1]; OCCURRED AT core::Error rstudio::r::util::(anonymous namespace)::iconvstrImpl(const std::string &, const std::string &, const std::string &, bool, std::string *) src/cpp/r/RUtil.cpp:268; LOGGED FROM: Error rstudio::session::modules::spelling::(anonymous namespace)::checkSpelling(const json::JsonRpcRequest &, json::JsonRpcResponse *) src/cpp/session/modules/SessionSpelling.cpp:225
2024-09-11T01:16:48.506642Z [rsession-kaisu] ERROR system error 92 (Illegal byte sequence) [str: 一, len: 3, from: UTF-8, to: ISO8859-1]; OCCURRED AT core::Error rstudio::r::util::(anonymous namespace)::iconvstrImpl(const std::string &, const std::string &, const std::string &, bool, std::string *) src/cpp/r/RUtil.cpp:268; LOGGED FROM: Error rstudio::session::modules::spelling::(anonymous namespace)::checkSpelling(const json::JsonRpcRequest &, json::JsonRpcResponse *) src/cpp/session/modules/SessionSpelling.cpp:225

User prefs: /Users/kaisu/.config/rstudio/rstudio-prefs.json

{
"jobs_tab_visibility": "shown",
"initial_working_directory": "~",
"posix_terminal_shell": "bash",
"cran_mirror": {
"name": "China (Beijing 3) [https]",
"host": "Peking University",
"url": "https://mirrors.pku.edu.cn/CRAN/",
"country": "cn",
"ok": 1,
"secondary": ""
},
"python_type": "system",
"python_version": "3.9.6",
"python_path": "/usr/bin/python3",
"default_project_location": "/Users/kaisu/Desktop/cohort/analy",
"load_workspace": false,
"always_save_history": false,
"syntax_color_console": true,
"console_line_length_limit": 100000
}

System prefs: /etc/rstudio/rstudio-prefs.json

(Not Found)

User state: /Users/kaisu/.local/share/rstudio/rstudio-desktop.json

{
"context_id": "D4C17383",
"visual_mode_confirmed": true
}