rocker-org / rocker-versioned

Run current & prior versions of R using docker
https://hub.docker.com/r/rocker/r-ver
GNU General Public License v2.0
297 stars 169 forks source link

rstudio image: not able to install package from source #46

Closed inkrement closed 7 years ago

inkrement commented 7 years ago

I updated from version 3.3.3 to 3.4.1 and now I get a modal with the message when I try to install a new package using devtools. Calling the same command in the docker bash works.

building r package from source requires installation of additional build tools.

When I click ok it fails without an error message. I am using linux and the rocker image, so all those "additional build tools" should be already installed, right?

eddelbuettel commented 7 years ago

What command?

What package?

What container?

Please try to help us help you.

inkrement commented 7 years ago

I am using rocker/verse:3.4.1 to host RStudio Server. I started it, logged into the web-interface and run devtool::install_github. Then I got the message that some "additional build tools" are missing, but no info which are missing. When I accept to install them, it stops after downloading the package-source with the following error message:

Installation failed: Could not find build tools necessary to build clckhs

I connected to the container and checked if typical "build"-packages (e.g., g++, make, build-essentials) are installed and they are. Then I wanted to check error logs, but the /var/log/rstudio-server folder is empty. Most forum posts related to this error message state that the problem is a missing RTools installation, but I use the rocker container and not windows. Any idea what could be the problem?

eddelbuettel commented 7 years ago

Beats me. But I am sure @cboettig will pipe -- those versioned containers are his babies.

cboettig commented 7 years ago

Seems to be a recent devtools problem, trying to track down just what now. Meanwhile, can you try:

install.packages("remotes")
remotes::install_github(...
inkrement commented 7 years ago

ok, thanks. Then I'll close this issue here.

cboettig commented 7 years ago

Just for the record, see https://github.com/hadley/devtools/issues/1590

basically this is a problem with the RStudio IDE, which devtools pings (if RStudio is being used) to detect build tools. Hopefully should be fixed soon. Meanwhile, use remotes::install_github(), or even just devtools::install_github() in CLI R, outside the IDE.

cboettig commented 7 years ago

p.s. we've found a workaround the IDE bug, so once the stack rebuilds this should "just work" once more.