AndriSignorell / DescTools

Tools for Descriptive Statistics and Exploratory Data Analysis
http://andrisignorell.github.io/DescTools/
86 stars 18 forks source link

DescTools not installing on R4.1.1 #80

Closed GillmanPayette closed 3 years ago

GillmanPayette commented 3 years ago

Hi,

I have been trying to install DescTools in R 4.1.1 and it is not working. There seem to be two dependencies that are causing problems: Exact and rootSolve. Is this just a problem for me? What am I missing?

I have R installed on a server to run a shiny app and the server is running Ubuntu 20.04, if that is relevant at all. I have tried multiple repositories with the same result.

Here is what I see when I run sudo su - -c "R -e \"install.packages('DescTools', repos='https://cloud.r-project.org/')\""

install.packages('DescTools', repos='https://cloud.r-project.org/') Installing package into ‘/usr/local/lib/R/site-library’ (as ‘lib’ is unspecified) also installing the dependencies ‘rootSolve’, ‘Exact’

trying URL 'https://cloud.r-project.org/src/contrib/rootSolve_1.8.2.2.tar.gz' Content type 'application/x-gzip' length 526584 bytes (514 KB)

downloaded 514 KB

trying URL 'https://cloud.r-project.org/src/contrib/Exact_2.1.tar.gz' Content type 'application/x-gzip' length 26472 bytes (25 KB)

downloaded 25 KB

trying URL 'https://cloud.r-project.org/src/contrib/DescTools_0.99.42.tar.gz' Content type 'application/x-gzip' length 2616338 bytes (2.5 MB)

downloaded 2.5 MB

The downloaded source packages are in ‘/tmp/RtmptsZHux/downloaded_packages’ Warning messages: 1: In install.packages("DescTools", repos = "https://cloud.r-project.org/") : installation of package ‘rootSolve’ had non-zero exit status 2: In install.packages("DescTools", repos = "https://cloud.r-project.org/") : installation of package ‘Exact’ had non-zero exit status 3: In install.packages("DescTools", repos = "https://cloud.r-project.org/") : installation of package ‘DescTools’ had non-zero exit status

AndriSignorell commented 3 years ago

you ran into a temporary problem with a dependency of DescTools. This is corrected now and your installation should work without problems now.

GillmanPayette commented 3 years ago

Hi, I am still getting the same problem when trying to install from https://cloud.r-project.org/ is there a particular repository that I should be using? note I have also tried https://cran.r-project.org/ with no success.

Thank you,

-Gillman

AndriSignorell commented 3 years ago

Ok, the dependency sequence of your errors are:

  1. rootSolve
  2. Exact
  3. DescTools So first try to install rootSolve (from CRAN) with: install.packages("rootSolve") Then try to install Exact and the DescTools. Post a potential error if it's not working.
GillmanPayette commented 3 years ago

I tried installing rootSolve and it didn't work, since Exact also depends on rootSolve that seems to be the source of the problem. I will attempt to contact the rootSolve contributors.

install.packages('rootSolve', repo='https://cran.r-project.org') Installing package into ‘/usr/local/lib/R/site-library’ (as ‘lib’ is unspecified) trying URL 'https://cran.r-project.org/src/contrib/rootSolve_1.8.2.2.tar.gz' Content type 'application/x-gzip' length 526584 bytes (514 KB)

downloaded 514 KB

The downloaded source packages are in ‘/tmp/Rtmp6R5Cmh/downloaded_packages’ Warning message: In install.packages("rootSolve", repo = "https://cran.r-project.org") : installation of package ‘rootSolve’ had non-zero exit status

AndriSignorell commented 3 years ago

Yes, this is a good starting point, I couldn't explain what sh:1: make: not found could refere to... I'll close the issue here, as it seems to not be a DescTools issue.