【发布时间】:2022-01-26 02:37:48
【问题描述】:
我已尝试编辑 .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 上进行 R 调试。
谢谢。
【问题讨论】:
标签: r debugging visual-studio-code visual-studio-debugging