Skip to content
This repository was archived by the owner on Feb 14, 2023. It is now read-only.

Can't install imager from anaconda #125

Open
pedrohforli opened this issue Mar 21, 2020 · 2 comments
Open

Can't install imager from anaconda #125

pedrohforli opened this issue Mar 21, 2020 · 2 comments

Comments

@pedrohforli
Copy link

I tried installing imager from conda by using with conda skeleton CRAN (anaconda documentation) on Ubuntu 18.04

When trying so I always fall in the same error:

checking for X... no
configure: error: X11 not found but required, configure aborted.

I tried installing several packages (tutorial 1, tutorial 2, tutorial 3, tutorial 4, tutorial 5) as well as installing every library recommended for ubuntu listed on this github page.

I've been able to install the library through my system R installation, so I'm fairly confident that this is an anaconda configuration related issue.

Is there a way to install it using anaconda?
Is this package expected to be included in the anaconda r repo?

Thanks for the help

@ShotaOchi
Copy link
Contributor

I can install imager in anaconda on Ubuntu 18.04.

The procedure is shown below.

click here
  1. conda create -n r_env

  2. conda activate r_env

  3. conda config --add channels conda-forge

  4. conda config --set channel_priority strict

  5. conda install r-base r-essentials

  6. conda skeleton cran imager

  7. conda-build r-imager

  8. conda install --use-local r-imager

I don't think imager is expected to be included in the anaconda r repo
because imager imports readbitmap package and readbitmap package isn't included in the repo.

@charliex210
Copy link

I got the same error in conda environment, the problem was solved by installing r-magick and imagemagick:

conda install -c conda-forge r-magick imagemagick --override-channels

Then I can install imager in R. @pedrohforli

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants