yihui / xfun

Miscellaneous R functions
https://yihui.org/xfun/
Other
135 stars 28 forks source link

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

Closed chuxinyuan closed 2 months ago

chuxinyuan commented 2 months ago

我在 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
yihui commented 2 months ago

我没装 Positron,你自己看看怎么修改: https://github.com/yihui/xfun/blob/052524ff4810804839c59cb41b03a595e3b61a69/R/session.R#L33-L35

chuxinyuan commented 2 months ago

@yihui 好的,我先试试。