R in 18.04 lockfile error in tmp directory when building a package: Bad Address












0















I am getting the following address when I try building a package in 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


Things I have tried:




  • Installing Ubuntu 18.04 on a new computer

  • Installing Ubuntu 18.04 on a new VM

  • Deleting the lock file (it doesn't exist, nor do many of the directories higher than it in the directory heirarchy)

  • Googling this error (nothing seems to exist on R specifically; it does seem to be a pointer issue within C perhaps?)

  • Waiting 6 months, installing the now-latest R version

  • Moving /tmp to a memory disk and rebooting


The best I've gotten it down to is to make the problem intermittent - it built the package once or twice, then started reporting the error again.



To reproduce, install R and all the packages I have installed:



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"))


Any help/tips you could offer, even as to where I should start looking for the problem, would be most appreciated.










share|improve this question























  • Having asked this, of course I had an insight as soon as I posted. It stopped working around the time I moved things to a SMB share. Preliminary testing indicates that was the problem. Will post that as the answer and close this if that remains true, so that others can benefit from my frustration.

    – Ari B. Friedman
    Feb 1 at 2:27
















0















I am getting the following address when I try building a package in 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


Things I have tried:




  • Installing Ubuntu 18.04 on a new computer

  • Installing Ubuntu 18.04 on a new VM

  • Deleting the lock file (it doesn't exist, nor do many of the directories higher than it in the directory heirarchy)

  • Googling this error (nothing seems to exist on R specifically; it does seem to be a pointer issue within C perhaps?)

  • Waiting 6 months, installing the now-latest R version

  • Moving /tmp to a memory disk and rebooting


The best I've gotten it down to is to make the problem intermittent - it built the package once or twice, then started reporting the error again.



To reproduce, install R and all the packages I have installed:



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"))


Any help/tips you could offer, even as to where I should start looking for the problem, would be most appreciated.










share|improve this question























  • Having asked this, of course I had an insight as soon as I posted. It stopped working around the time I moved things to a SMB share. Preliminary testing indicates that was the problem. Will post that as the answer and close this if that remains true, so that others can benefit from my frustration.

    – Ari B. Friedman
    Feb 1 at 2:27














0












0








0








I am getting the following address when I try building a package in 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


Things I have tried:




  • Installing Ubuntu 18.04 on a new computer

  • Installing Ubuntu 18.04 on a new VM

  • Deleting the lock file (it doesn't exist, nor do many of the directories higher than it in the directory heirarchy)

  • Googling this error (nothing seems to exist on R specifically; it does seem to be a pointer issue within C perhaps?)

  • Waiting 6 months, installing the now-latest R version

  • Moving /tmp to a memory disk and rebooting


The best I've gotten it down to is to make the problem intermittent - it built the package once or twice, then started reporting the error again.



To reproduce, install R and all the packages I have installed:



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"))


Any help/tips you could offer, even as to where I should start looking for the problem, would be most appreciated.










share|improve this question














I am getting the following address when I try building a package in 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


Things I have tried:




  • Installing Ubuntu 18.04 on a new computer

  • Installing Ubuntu 18.04 on a new VM

  • Deleting the lock file (it doesn't exist, nor do many of the directories higher than it in the directory heirarchy)

  • Googling this error (nothing seems to exist on R specifically; it does seem to be a pointer issue within C perhaps?)

  • Waiting 6 months, installing the now-latest R version

  • Moving /tmp to a memory disk and rebooting


The best I've gotten it down to is to make the problem intermittent - it built the package once or twice, then started reporting the error again.



To reproduce, install R and all the packages I have installed:



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"))


Any help/tips you could offer, even as to where I should start looking for the problem, would be most appreciated.







r tmpfs






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 31 at 22:28









Ari B. FriedmanAri B. Friedman

259319




259319













  • Having asked this, of course I had an insight as soon as I posted. It stopped working around the time I moved things to a SMB share. Preliminary testing indicates that was the problem. Will post that as the answer and close this if that remains true, so that others can benefit from my frustration.

    – Ari B. Friedman
    Feb 1 at 2:27



















  • Having asked this, of course I had an insight as soon as I posted. It stopped working around the time I moved things to a SMB share. Preliminary testing indicates that was the problem. Will post that as the answer and close this if that remains true, so that others can benefit from my frustration.

    – Ari B. Friedman
    Feb 1 at 2:27

















Having asked this, of course I had an insight as soon as I posted. It stopped working around the time I moved things to a SMB share. Preliminary testing indicates that was the problem. Will post that as the answer and close this if that remains true, so that others can benefit from my frustration.

– Ari B. Friedman
Feb 1 at 2:27





Having asked this, of course I had an insight as soon as I posted. It stopped working around the time I moved things to a SMB share. Preliminary testing indicates that was the problem. Will post that as the answer and close this if that remains true, so that others can benefit from my frustration.

– Ari B. Friedman
Feb 1 at 2:27










0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1114567%2fr-in-18-04-lockfile-error-in-tmp-directory-when-building-a-package-bad-address%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1114567%2fr-in-18-04-lockfile-error-in-tmp-directory-when-building-a-package-bad-address%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to make a Squid Proxy server?

Is this a new Fibonacci Identity?

19世紀