tctcab Rmd 即 Rmarkdown 文件。问题体现可以现为:
当我在 Code Chunk 中执行 data 命令,一般会在 Code Chunk 下方显示我的数据,但是当我把 Rmarkdown 保存到本地后再执行 data 命令就不再会再下方显示数据
data <- read.xlsx("XXX.xlsx")
data
版本信息
R version 4.1.1 (2021-08-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19042)
Matrix products: default
locale:
[1] LC_COLLATE=Chinese (Simplified)_China.936 LC_CTYPE=Chinese (Simplified)_China.936 LC_MONETARY=Chinese (Simplified)_China.936
[4] LC_NUMERIC=C LC_TIME=Chinese (Simplified)_China.936
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.1.1 tools_4.1.1