我正在尝试安装R:devtools,并且单个依赖项(ps)无法安装,导致缺少依赖项。我在Windows 10,R 3.6和当前的RStudio版本上使用WSL Ubuntu。
它在所有情况下都会失败(使用RStudio,通过命令提示符访问,在管理模式下启动上述所有操作,使用sudo启动R)。我也尝试过关闭防火墙,这是围绕类似问题的其他问题所建议的。最后,我尝试将其安装到其他.libPaths()位置。其他软件包安装也很好。我没有尝试从源代码安装-因为我需要devtools来安装。
根据错误消息,命令mv没有权限将已安装的软件包从其临时安装目录移动到我的软件包库中的最终位置(但是安装实用程序可以轻松创建目录或写入文件)。任何人都知道为什么仅使用此单个程序包就可能发生这种情况吗?我很困惑。
> install.packages('ps')
Installing package into ‘/usr/lib/R/library’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/ps_1.3.0.tar.gz'
Content type 'application/x-gzip' length 261887 bytes (255 KB)
==================================================
downloaded 255 KB
* installing *source* package ‘ps’ ...
** package ‘ps’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
gcc -std=gnu99 -g -O2 -fdebug-prefix-map=/build/r-base-VjHo9C/r-base-3.6.0=. - fstack-protector-strong -Wformat -Werror=format-security -Wdate-time - D_FORTIFY_SOURCE=2 -g -Wall px.c -o px
Run Code Online (Sandbox Code Playgroud)
一堆我太不懂的其他代码
gcc -std=gnu99 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o ps.so …Run Code Online (Sandbox Code Playgroud) Windows 10,使用 git 2.30.0.windows.2 和 git bash。
我一直在跟踪存储库中的更改,该存储库也是 Google Drive 文件夹,因为尽管这可能会导致很多问题,但这是将我的代码放入学校集群并满足我的非 git 实验室伙伴同步需求的唯一方法。以前,git 可以很好地跟踪我的存储库中的 .gdoc 文件,但大约三周前 git 开始给我提供以下错误。
$ git add -A
error: Notes/Conservation Designations.gdoc: failed to insert into database
error: unable to index file 'Notes/Conservation Designations.gdoc'
fatal: updating files failed
Run Code Online (Sandbox Code Playgroud)
此外,在 git status 中,某些文件同时显示为已删除和未跟踪。起初我以为是gdoc文件,但仔细想想,实际上很多文件都发生了这种情况,但非gdoc文件可以暂存。当我运行时git add -A --ignore-errors; git status,这是输出。在“要提交的更改”部分中,您可以看到有多个 .gdoc 文件被列为已删除,然后这些文件在输出末尾也被列为“未跟踪” git status。
On branch main
Your branch is up to date with 'origin/main'.
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
deleted: …Run Code Online (Sandbox Code Playgroud)