AdrianAntico / AutoQuant

R package for automation of machine learning, forecasting, model evaluation, and model interpretation
GNU Affero General Public License v3.0
235 stars 43 forks source link

Lost dependency #7

Closed TheofilosMyrillas closed 5 years ago

TheofilosMyrillas commented 5 years ago

Hi, I try to install devtools::install_github('AdrianAntico/RemixAutoML', force = TRUE, dependencies = TRUE, upgrade = FALSE) but i get this error: Error: (converted from warning) unable to access index for repository https://github.com/catboost/catboost/tree/master/catboost/R-package/src/contrib: cannot open URL 'https://github.com/catboost/catboost/tree/master/catboost/R-package/src/contrib/PACKAGES'

AdrianAntico commented 5 years ago

Hi @TheofilosMyrillas did you run the first script to install the dependencies? It looks like you don't have catboost installed.

library(devtools)
# No Remotes ----
# Attachments ----
to_install <- c("catboost", "caTools", "data.table", "doParallel", "foreach", "forecast", "ggplot2", "h2o", "itertools", "lubridate", "monreg", "pROC", "RColorBrewer", "recommenderlab", "ROCR", "scatterplot3d", "stringr", "tm", "tsoutliers", "wordcloud", "xgboost", "zoo")
for (i in to_install) {
  message(paste("looking for ", i))
  if(i == "catboost" & !requireNamespace(i)) {
    devtools::install_github('catboost/catboost', subdir = 'catboost/R-package')
  } else if(i == "h2o" & !requireNamespace(i)) {
    if ("package:h2o" %in% search()) { detach("package:h2o", unload=TRUE) }
    if ("h2o" %in% rownames(installed.packages())) { remove.packages("h2o") }
    pkgs <- c("RCurl","jsonlite")
    for (pkg in pkgs) {
      if (! (pkg %in% rownames(installed.packages()))) { install.packages(pkg) }
    }
    install.packages("h2o", type="source", repos="https://h2o-release.s3.amazonaws.com/h2o/rel-yates/3/R")
  } else if (!requireNamespace(i)) {
    message(paste("     installing", i))
    install.packages(i)
  }
}
TheofilosMyrillas commented 5 years ago

Hi @AdrianAntico, all packages are installed. I run the script you mentioned before installing your package. My collegue face the same problem. Maybe I am wrong but I believe that the problem is that it tries to find this url 'https://github.com/catboost/catboost/tree/master/catboost/R-package/src/contrib/PACKAGES' but does not exist. image

AdrianAntico commented 5 years ago

Can you investigate these links and let me know if neither works for you?

This link shows the way I have listed in the installation script: https://catboost.ai/docs/installation/r-installation-github-installation.html

devtools::install_github('catboost/catboost', subdir = 'catboost/R-package')

Here is a link to another way: https://catboost.ai/docs/installation/r-installation-binary-installation.html

devtools::install_url('https://github.com/catboost/catboost/releases/download/v0.6.1.1/catboost-R-Windows-0.6.1.1.tgz', args = c("--no-multiarch"))
TheofilosMyrillas commented 5 years ago

Hi, I managed to install your package by setting dependencies = FALSE. Everything works now. Thanks

labrax commented 5 years ago

I had some issues installing it. I fixed installing dependencies on my installation (apt-get install libgsl0-dev) and a packages that were missing - install.packages("sde").

Thank you