我已经尝试过编辑.libpaths()的输出并对其进行更改,但下面仍然会出现以下错误:
PS C:\Users\Jesus> radian
Error: '\D' is an unrecognized escape in character string starting "'D:\D"
R version 4.1.2 (2021-11-01) -- "Bird Hippie"
Platform: x86_64-w64-mingw32 (64-bit)如果你注意到'\D' is an unrecognized escape in character string starting "'D:\D"是显而易见的,即使我切换到弧度。
r$> .libPaths()
[1] "D:/Documents/R/win-library/4.1" "C:/Program Files/R/R-4.1.2/library"r$> remotes::install_github("ManuelHentschel/vscDebugger")
Downloading GitHub repo ManuelHentschel/vscDebugger@HEAD
v checking for file 'C:\Users\Jesus\AppData\Local\Temp\RtmpSaUPCL\remotes27fc9487e46\ManuelHentschel-vscDebugger-ce8f248/DESCRIPTION'
- preparing 'vscDebugger': (359ms)
v checking DESCRIPTION meta-information ...
- cleaning src
- checking for LF line-endings in source and make files and shell scripts
- checking for empty or unneeded directories
Omitted 'LazyData' from DESCRIPTION
- building 'vscDebugger_0.4.7.tar.gz'
Installing package into 'D:/Documents/R/win-library/4.1'
(as 'lib' is unspecified)
Error: '\D' is an unrecognized escape in character string starting "'D:\D"
Execution halted
Warning message:
In i.p(...) :
installation of package 'C:/Users/Jesus/AppData/Local/Temp/RtmpSaUPCL/file27fc7270a15/vscDebugger_0.4.7.tar.gz' had non-zero exit status我得到了这个错误Error: '\D' is an unrecognized escape in character string starting "'D:\D",我认为它只发生在我试图安装的特定软件包上。
如果有人知道如何解决这个问题,那么我就可以在VSCode上进行调试了。
谢谢。
发布于 2022-01-26 09:13:20
我发现我的.Rprofile在看其他论坛时出了点问题,看起来删除.Rdata文件也有帮助。
它产生于
# LanguageServer Setup Start (do not change this chunk)
# to remove this, run languageserversetup::remove_from_rprofile
if (requireNamespace('languageserversetup', quietly = TRUE)) {
options(langserver_library = 'D:\Documents/languageserver-library')
languageserversetup::languageserver_startup()
unloadNamespace('languageserversetup')
}
# LanguageServer Setup End修复程序正在将'D:\Documents/languageserver-library'中的'D:\Documents/languageserver-library'更改为/
因此,'D:/Documents/languageserver-library'
干杯
https://stackoverflow.com/questions/70858093
复制相似问题