Git Product home page Git Product logo

Comments (7)

eddelbuettel avatar eddelbuettel commented on May 29, 2024

Please look up 'minimally verifiable complete example' or see eg here.

I cannot help you with a mere collation of error messages. Sorry. If it helps you, here is the page at CRAN showing it works for them on every system and we may consider them to be unbiased referees.

Lastly, no need to file the same issue twice.

from rcppeigen.

montge avatar montge commented on May 29, 2024

I've extracted out my example below removing some of our stuff for the minimally verifiable complete example. R dependency hell is far worse then Python, node, or java, as a lot of R packages don't use configure, autoconf, or other tools that help figure out what's missing...

Dockerfile

# Base image
FROM rocker/shiny:latest

RUN echo "deb http://ftp.debian.org/debian stretch-backports main" >> /etc/apt/sources.list.d/backports.list

RUN apt-get update -y
RUN apt-get upgrade -y

RUN export DEBIAN_FRONTEND=noninteractive
# Installing packages required for requirements.R
RUN apt-get install -y  cron \
                        git \
                        vim \
                        libssl-dev \
                        libnlopt-dev \
                        libgit2-dev \
                        libssh2-1-dev \
                        liblapack-dev \
                        libeigen3-dev \
                        libjpeg-dev \
                        libblas-dev \
                        libomp-dev \
                        build-essential \
                        libigraph0-dev \
                        libboost-all-dev \
                        libopenblas-dev \
                        libatlas-base-dev \
                        gfortran \
                        libxml2-dev \
                        libglpk-dev \
                        libgmp-dev \
                        libexplain-dev \
                        libbsd-dev \
                        tcl-dev \
                        tk-dev \
                        libxaw7-dev \
                        libgd2-xpm-dev

COPY ./rconfig/requirements.R /tmp/requirements.R
RUN Rscript /tmp/requirements.R

EXPOSE 3838

CMD ["/usr/bin/shiny-server.sh"]

below is for ./rconfig/requirements.R

if (!requireNamespace("BiocManager"))
    install.packages("BiocManager")
BiocManager::install()
BiocManager::install("graph", version = "3.8")
BiocManager::install("BiocInstaller", version = "3.8")
BiocManager::install("Rgraphviz", version = "3.8")
BiocManager::install("marray", version = "3.8")
BiocManager::install("affy", version = "3.8")
BiocManager::install("Biobase", version = "3.8")
BiocManager::install("limma", version = "3.8")
BiocManager::install("RBGL", version = "3.8")

list.of.packages <- c("ipred"
                     ,"prodlim"
                     ,"dimRed"
                     ,"ddalpha"
                     ,"recipes"
                     ,"shinyFiles"
                     ,"rhandsontable"
                     ,"shinydashboard"
                     ,"jpeg"
                     ,"leaflet"
                     ,"Rdonlp2"
                     ,"d3heatmap"
                     ,"networkD3"
                     ,"bnlearn"
                     ,"DT"
                     ,"arules"
                     ,"cleanr"
                     ,"elastic"
                     ,"elasticsearchr"
                     ,"plotly"
                     ,"rsconnect"
                     ,"ggmap"
                     ,"mapdata"
                     ,"bh"
                     ,"rcpp"
                     ,"devtools"
                     ,"dplyr"
                     ,"data.table"
                     ,"nlme"
                     ,"hexbin"
                     ,"broom"
                     ,"plyr"
                     ,"xtable"
                     ,"pbkrtest"
                     ,"caret"
                     ,"e1071"
                     ,"shinydashboard"
                     ,"shiny"
                     ,"digest"
                     ,"magrittr"
                     ,"httr"
                     ,"jsonlite"
                     ,"tibble"
                     ,"ggplot2")

new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])]
#if(length(new.packages)) install.packages(new.packages, repos='https://cran.rstudio.com/ 3', dependencies = TRUE)
if(length(new.packages)) install.packages(new.packages, dependencies = TRUE)


for (i.pack in 1:length(list.of.packages)){
  suppressMessages(require(list.of.packages[i.pack], character.only = TRUE, quietly = TRUE, warn.conflicts = FALSE))
}

# update.packages(checkBuilt=TRUE, ask=FALSE)
update.packages(ask = FALSE)

BTW, about that double submission, appears that was Microsoft is getting a bit too aggressive on it's new feature enabling, there was a button to enable likeness of reporting, and apparently that reset in the middle of submitting the new ticket...

from rcppeigen.

yixuan avatar yixuan commented on May 29, 2024

Hi @montge , this is a compiler warning from the Eigen library, and you can turn it off by adding the -Wno-ignored-attributes option to GCC.

from rcppeigen.

eddelbuettel avatar eddelbuettel commented on May 29, 2024

R dependency hell is far worse then Python, node, or java,

Utter nonsense.

from rcppeigen.

eddelbuettel avatar eddelbuettel commented on May 29, 2024

You are "wildcard installing" what will amount to a substantial portion of CRAN. In one go. Good luck with that.

For what it is worth, I have more that that installed on the machine on which I (carefully, and regularly) check reverse dependencies of Rcpp and related packages (such as RcppEigen). And this Just Works (TM).

But I have lost interest in helping you when you come to the request for a MINIMALLY complete verifiable example with a script to install several dozen packages. That's how I want to spend my unpaid volunteer time. Sorry,

from rcppeigen.

yixuan avatar yixuan commented on May 29, 2024

@montge From your log it seems that you are installing my RSpectra. To clarify, these warnings will not prevent you from building and installing RSpectra. It merely generates a huge number of warning messages.

from rcppeigen.

eddelbuettel avatar eddelbuettel commented on May 29, 2024

I am still marveling at just how brazen this was. Starting with your list.of.packages object (which is actually a vector, but peu chere):

AP <- available.packages()
rl <- tools::package_dependencies(packages=list.of.packages,db=AP,recursive=TRUE,reverse=TRUE)
revdep <- unique(sort(do.call(c, rl)))
length(revdep)

we find that your fully resolved list of dependencies amounts to 5950 packages. Seriously?

from rcppeigen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.