Re: [R-sig-Debian] package interflex

2023-06-06 Thread Dirk Eddelbuettel


On 6 June 2023 at 19:37, Johan Andresen wrote:
| I'd like input on how to install interflex
|  (note the instructions on its
| github).

It says   install.packages("interflex")   -- did you try that?

| The installation failed on stable/bullseye, also when I updated to the
| newer R version 4.3.0 through secure apt and the additional source.list
|  element.
| 1. $ `sudo apt r-base-dev`
| 2. RStudio install.packages('pacman')
| 3. RStudio pacman::p_load('interflex')

Sorry but that is non-standard and not what a) the R documentation suggests
or b) the package itself suggests.  You're on your own there; maybe try the
RStudio / posit help forums for pacman.  

My preference these days is r2u (on Ubuntu 22.04) and a quick

   $ time docker run --rm -ti rocker/r2u:22.04 install.r interflex

succeeded in 22 seconds (!!) installing a total of 91 (!!) different .deb
packages. I like r2u a _lot_ for this ease, speed and reliability of fully
dependency-declared .deb packages (for Ubuntu 22.04 and 20.04, NOT for
Debian).  See   https://eddelbuettel.github.io/r2u/   for more.

| Warning messages:
| 
| > 1: In utils::install.packages(package, ...) :
| >  installation of package 'nloptr' had non-zero exit status
| > 2: In utils::install.packages(package, ...) :
| >  installation of package 'lme4' had non-zero exit status
| > 3: In utils::install.packages(package, ...) :
| >  installation of package 'pbkrtest' had non-zero exit status
| > 4: In utils::install.packages(package, ...) :
| >  installation of package 'car' had non-zero exit status
| > 5: In utils::install.packages(package, ...) :
| 
|  installation of package 'AER' had non-zero exit status
| > 6: In utils::install.packages(package, ...) :
| >  installation of package 'interflex' had non-zero exit status
| > 7: In p_install(package, character.only = TRUE, ...) :
| > 8: In library(package, lib.loc = lib.loc, character.only = TRUE,
| > logical.return = TRUE, :
| >  there is no package called 'interflex'
| > 9: In pacman::p_load("interflex") : Failed to install/load:
| >  interflex

There is a saying that you try to walk before you run. _Many_ of those
packages failing to install from source (== harder, you need dependencies,
and also slower) are in fact available as r-cran-xyz package for
Debian. Try 'apt-cache search r-cran-xyz' for different values of xyz.

Cheers, Dirk

-- 
dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org

___
R-SIG-Debian mailing list
R-SIG-Debian@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-debian


[R-sig-Debian] package interflex

2023-06-06 Thread Johan Andresen
Hi

I'd like input on how to install interflex
 (note the instructions on its
github).

The installation failed on stable/bullseye, also when I updated to the
newer R version 4.3.0 through secure apt and the additional source.list
 element.
1. $ `sudo apt r-base-dev`
2. RStudio install.packages('pacman')
3. RStudio pacman::p_load('interflex')

Warning messages:

> 1: In utils::install.packages(package, ...) :
>  installation of package 'nloptr' had non-zero exit status
> 2: In utils::install.packages(package, ...) :
>  installation of package 'lme4' had non-zero exit status
> 3: In utils::install.packages(package, ...) :
>  installation of package 'pbkrtest' had non-zero exit status
> 4: In utils::install.packages(package, ...) :
>  installation of package 'car' had non-zero exit status
> 5: In utils::install.packages(package, ...) :

 installation of package 'AER' had non-zero exit status
> 6: In utils::install.packages(package, ...) :
>  installation of package 'interflex' had non-zero exit status
> 7: In p_install(package, character.only = TRUE, ...) :
> 8: In library(package, lib.loc = lib.loc, character.only = TRUE,
> logical.return = TRUE, :
>  there is no package called 'interflex'
> 9: In pacman::p_load("interflex") : Failed to install/load:
>  interflex


Johan

[[alternative HTML version deleted]]

___
R-SIG-Debian mailing list
R-SIG-Debian@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-debian