yihui/xfun

`session_info()` 无法正确识别 Positron

chuxinyuan opened this issue · 2 comments

我在 Positron CONSOLE 中输入 xfun::session_info("xfun") 显示结果如下:

R version 4.4.1 (2024-06-14)
Platform: x86_64-pc-linux-gnu
Running under: Manjaro Linux, RStudio 2023.3

Locale:
  LC_CTYPE=zh_CN.UTF-8       LC_NUMERIC=C               LC_TIME=zh_CN.UTF-8       
  LC_COLLATE=zh_CN.UTF-8     LC_MONETARY=zh_CN.UTF-8    LC_MESSAGES=zh_CN.UTF-8   
  LC_PAPER=zh_CN.UTF-8       LC_NAME=C                  LC_ADDRESS=C              
  LC_TELEPHONE=C             LC_MEASUREMENT=zh_CN.UTF-8 LC_IDENTIFICATION=C       

Package version:
  graphics_4.4.1  grDevices_4.4.1 stats_4.4.1     tools_4.4.1     utils_4.4.1    
  xfun_0.45   

Positron 版本信息:

Positron Version: 2024.06.1 build 27
Code - OSS Version: 1.90.0
Commit: a893e5b282612ccb2200102957ac38d3c14e5196
Date: 2024-06-26T01:22:29.024Z
Electron: 29.4.0
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Linux x64 6.6.34-1-MANJARO

我没装 Positron,你自己看看怎么修改:

xfun/R/session.R

Lines 33 to 35 in 052524f

if (loadable('rstudioapi') && rstudioapi::isAvailable()) {
res$running = paste0(res$running, ', RStudio ', rstudioapi::getVersion())
}

@yihui 好的,我先试试。