Installation fails
Trying to install this per the instructions in the README and it fails. Help troubleshooting?
Running RStudio Server on CentOS. I followed the instructions to run devtools::install_github("mb706/mlr", ref = "mb706_CPO") before starting.
Looks like it's breaking when it's trying to access mlrLearners.R, which I don't see in the R subdirectory. Here's my log:
> devtools::install_github("mlr-org/automlr")
Downloading GitHub repo mlr-org/automlr@master
from URL https://api.github.com/repos/mlr-org/automlr/zipball/master
Installing automlr
'/usr/lib64/R/bin/R' --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL \
'/tmp/RtmpaJKfvi/devtools7ea11b07fc6/mlr-org-automlr-8e74e08' \
--library='/home/mydir/R/x86_64-redhat-linux-gnu-library/3.4' --install-tests
* installing *source* package ‘automlr’ ...
./configure: line 13: ./searchspaceconvert.py: Permission denied
R version 3.4.3 (2017-11-30) -- "Kite-Eating Tree"
Copyright (C) 2017 The R Foundation for Statistical Computing
Platform: x86_64-redhat-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(checkmate)
> library(roxygen2)
> roxygenise()
First time using roxygen2. Upgrading automatically...
Loading required package: mlr
Loading required package: ParamHelpers
Loading required package: BBmisc
Loading required package: parallelMap
Error in readLines(con, warn = FALSE, n = n, ok = ok, skipNul = skipNul) :
cannot open the connection
Calls: roxygenise ... lapply -> FUN -> parse -> read_lines_enc -> readLines
In addition: Warning messages:
1: In normalizePath(file.path(path, "R", collate)) :
path[8]="/tmp/RtmpaJKfvi/devtools7ea11b07fc6/mlr-org-automlr-8e74e08/R/mlrLearners.R": No such file or directory
2: In normalizePath(rfiles, winslash = "/") :
path[8]="/tmp/RtmpaJKfvi/devtools7ea11b07fc6/mlr-org-automlr-8e74e08/R/mlrLearners.R": No such file or directory
3: In readLines(con, warn = FALSE, n = n, ok = ok, skipNul = skipNul) :
cannot open file '/tmp/RtmpaJKfvi/devtools7ea11b07fc6/mlr-org-automlr-8e74e08/R/mlrLearners.R': No such file or directory
Execution halted
ERROR: configuration failed for package ‘automlr’
* removing ‘/home/mydir/R/x86_64-redhat-linux-gnu-library/3.4/automlr’
Installation failed: Command failed (1)
Hi, thanks for your report! The problem appears to be the line
./configure: line 13: ./searchspaceconvert.py: Permission denied
Automlr has the database of sensible search space boundaries in a (more readable) org-mode file; searchspaceconvert.py is supposed to convert this and create the mlrLearners.R file. For some reason it appears that the python file does not have the executable permission.
Unfortunately, this works without problems on my machine. To help me diagnose this, please tell me which version of devtools you are using (packageVersion("devtools")), and send me the output you get when running
devtools::install_github("mlr-org/automlr", ref = "try_inst")