18.04 版 R 构建包时,tmp 目录中的 lockfile 错误:错误地址

18.04 版 R 构建包时,tmp 目录中的 lockfile 错误:错误地址

当我尝试在 R 中构建包时,我得到了以下地址。

> R CMD build bootLR

...

  cp: error writing '/tmp/RtmpIwkIfV/Rbuild1cf97228aeac/bootLR/.Rproj.user/6295459/sources/s-52F68146/lock_file': Bad address
    ERROR
   copying to build directory failed

我尝试过的事情:

  • 在新计算机上安装 Ubuntu 18.04
  • 在新虚拟机上安装 Ubuntu 18.04
  • 删除锁定文件(它不存在,目录层次结构中高于它的许多目录也不存在)
  • 谷歌搜索此错误(似乎没有特别存在于 R 上;它似乎是 C 中的一个指针问题?)
  • 等待 6 个月,安装现在最新的 R 版本
  • 将 /tmp 移至内存磁盘并重新启动

我所能做的最好的事情就是让问题间歇性出现——它构建了包一次或两次,然后再次开始报告错误。

为了重现,请安装 R 和我已安装的所有软件包:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
# Add to /etc/apt/sources.list: deb https://cran.rstudio.com/bin/linux/ubuntu bionic/
sudo apt-get update; sudo apt-get -y install r-base r-base-dev r-recommended libssl-dev libssh2-1-dev
sudo R
install.packages(c("Hmisc","R.utils"))
install.packages(c("RColorBrewer","RCurl","foreign"))
install.packages(c("data.table"))
install.packages(c("tidyverse"))
install.packages(c("functional","XML","MatchIt"))
install.packages(c("taRifx","taRifx.geo","taRifxRcpp","bootLR")) # my packages
install.packages(c("ggplot2","dplyr","stringr", "lubridate","devtools","Roxygen")) # Hadleyverse
install.packages(c("sp","spdep","rgdal","maptools"))
install.packages(c("SDMTools","gstat"))
install.packages(c("automap","RArcInfo","rgeos","spatstat","FNN","fields","MapGAM","spBayes","functional"))
install.packages(c("gtools","gdata","car","formula.tools"))
install.packages(c("testthat","MASS","stargazer","survey","xtable","pander"))
install.packages(c("formatR","caTools","rprojroot","rmarkdown"))
install.packages(c("zeligverse")) 
install.packages(c("boot","binom")) 
install.packages(c("ROAuth","twitteR","RJSONIO")) # webscraping
install.packages(c("pscl","bayesm","perturb","plm"))
install.packages(c("doParallel"))
install.packages(c("HH"))
install.packages(c("equivalence","ROCR","r2stl","svglite"))

如果您能提供任何帮助/提示,​​甚至告诉我应该从哪里开始寻找问题,我将不胜感激。

相关内容