Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install error #17

Closed
sjsrey opened this issue Feb 4, 2019 · 4 comments
Closed

install error #17

sjsrey opened this issue Feb 4, 2019 · 4 comments

Comments

@sjsrey
Copy link

sjsrey commented Feb 4, 2019

@chris-prener when installing via

> install.packages("areal")

I'm getting:

ERROR: dependencies ‘lwgeom’, ‘sf’ are not available for package ‘areal’
  * removing ‘/home/serge/anaconda3/lib/R/library/areal’

The downloaded source packages are in
        ‘/tmp/RtmpBEpBpJ/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
Warning messages:
1: In install.packages("areal") :
  installation of package ‘units’ had non-zero exit status
2: In install.packages("areal") :
  installation of package ‘sf’ had non-zero exit status
3: In install.packages("areal") :
  installation of package ‘lwgeom’ had non-zero exit status
4: In install.packages("areal") :
  installation of package ‘areal’ had non-zero exit status
> library(areal)
Error in library(areal) : there is no package called ‘areal’
>

I realize this might be due to using R installed via conda. But on Ubuntu 18.04 I'm getting the same error(s) on a clean install of R from the official repositories:

* DONE (dplyr)
ERROR: dependencies ‘lwgeom’, ‘sf’ are not available for package ‘areal’
* removing ‘/home/serge/R/x86_64-pc-linux-gnu-library/3.4/areal’

The downloaded source packages are in
        ‘/tmp/Rtmpb2kPO5/downloaded_packages’
Warning messages:
1: In install.packages("areal") :
  installation of package ‘units’ had non-zero exit status
2: In install.packages("areal") :
  installation of package ‘sf’ had non-zero exit status
3: In install.packages("areal") :
  installation of package ‘lwgeom’ had non-zero exit status
4: In install.packages("areal") :
  installation of package ‘areal’ had non-zero exit status
> library(areal)
Error in library(areal) : there is no package called ‘areal’
@chris-prener
Copy link
Owner

Thanks @sjsrey - I'm not an expert on Conda or Ubuntu. It looks like you're missing a couple of dependencies with Ubuntu that are needed to install sf and lwgeom. We build areal on Travis CI using Linux, so it is absolutely possible. Here is our Travis install script for Linux - that should give you a roadmap to get the dependencies in place.

@chris-prener
Copy link
Owner

Hey @sjsrey - wanted to check in and see if you have any additional issues getting the package installed?

@sjsrey
Copy link
Author

sjsrey commented Feb 15, 2019

Just finished getting the dependencies installed. The most intricate one, on Debian, was lwgeom, but the solution was eventually found. Will be exploring areal in the next few days.

@chris-prener
Copy link
Owner

Great - glad to hear it @sjsrey!

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

No branches or pull requests

2 participants