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

GH-actions for macOS (#1309): #1323

Closed
wants to merge 39 commits into from
Closed

Conversation

ateucher
Copy link
Contributor

I'm not sure this gets it 100%, but we can see how far it gets and I should be able to debug from there...

@etiennebr

etiennebr and others added 5 commits March 27, 2020 13:55
- add Rcpp drat repo to work around RcppCore/Rcpp#1060
- add configure.args for sf and rgdal (hopefully only necessary temporarily: r-spatial#1312)
- don't build vignettes on macOS
@ateucher
Copy link
Contributor Author

@etiennebr I'm not sure if you have admin access here, but for some reason the actions aren't running for me (only on my first two commits). Any way you can trigger it manually?

@ateucher
Copy link
Contributor Author

Actually scratch that, I can just watch on my fork

@ateucher
Copy link
Contributor Author

ateucher commented Mar 30, 2020

@edzer
Copy link
Member

edzer commented Mar 30, 2020

The error is not the same; afaict it is pkg tmaptools that is missing, and needed for vignette 5.

@ateucher
Copy link
Contributor Author

Sorry @edzer, I meant this error in running examples (which I also reproduce locally):

* checking examples ... ERROR
Running examples in 'sf-Ex.R' failed
The error most likely occurred in:

> ### Name: st_crs
> ### Title: Retrieve coordinate reference system from object
> ### Aliases: st_crs st_crs.sf st_crs.numeric st_crs.character st_crs.sfc
> ###   st_crs.bbox st_crs.CRS st_crs.crs st_crs<- st_crs<-.sf st_crs<-.sfc
> ###   st_set_crs NA_crs_ is.na.crs $.crs format.crs st_axis_order
> ### Keywords: datasets
> 
> ### ** Examples
> 
> sfc = st_sfc(st_point(c(0,0)), st_point(c(1,1)))
> sf = st_sf(a = 1:2, geom = sfc)
> st_crs(sf) = 4326
> st_geometry(sf)
Geometry set for 2 features 
geometry type:  POINT
dimension:      XY
bbox:           xmin: 0 ymin: 0 xmax: 1 ymax: 1
CRS:            EPSG:4326
POINT (0 0)
POINT (1 1)
> sfc = st_sfc(st_point(c(0,0)), st_point(c(1,1)))
> st_crs(sfc) = 4326
> sfc
Geometry set for 2 features 
geometry type:  POINT
dimension:      XY
bbox:           xmin: 0 ymin: 0 xmax: 1 ymax: 1
CRS:            EPSG:4326
POINT (0 0)
POINT (1 1)
> sfc = st_sfc(st_point(c(0,0)), st_point(c(1,1)))
> library(dplyr)

Attaching package: ‘dplyr’

The following objects are masked from ‘package:stats’:

    filter, lag

The following objects are masked from ‘package:base’:

    intersect, setdiff, setequal, union

> x = sfc %>% st_set_crs(4326) %>% st_transform(3857)
> x
Geometry set for 2 features 
geometry type:  POINT
dimension:      XY
bbox:           xmin: 0 ymin: 0 xmax: 111319.5 ymax: 111325.1
CRS:            EPSG:3857
POINT (0 0)
POINT (111319.5 111325.1)
> st_crs("EPSG:3857")$input
[1] "EPSG:3857"
> st_crs("+init=epsg:3857")$proj4string
proj_create: init=epsg:/init=IGNF: syntax not supported in non-PROJ4 emulation mode
[1] "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"
> st_crs("+init=epsg:3857 +units=m")$b     # numeric
proj_create: init=epsg:/init=IGNF: syntax not supported in non-PROJ4 emulation mode
Error in st_crs.character("+init=epsg:3857 +units=m") : 
  invalid crs: +init=epsg:3857 +units=m
Calls: st_crs -> st_crs.character
Execution halted

That other one is spurious I think.

@ateucher
Copy link
Contributor Author

Ok I have the checks on macOS (r-release and r-devel) down to just producing the error (failed example) that is the same as the error on the CRAN checks. @etiennebr has a simple fix (here), which I could incorporate into this PR if you like?

@edzer
Copy link
Member

edzer commented Apr 1, 2020

Yes, that would be great!

@etiennebr
Copy link
Member

Good job @ateucher! 🎉

@edzer, if you want to perform a single review I could merge this branch in 'gh-actions', but I don't see any problem in merging this branch right away since it keeps all travis, appveyor and codecov checks, but adds linux and macOS checks.

@ateucher, are there any lessons we could use to improve the installation instructions for macOS?

@ateucher
Copy link
Contributor Author

ateucher commented Apr 1, 2020

Whew that was a messy one. I definitely recommend doing a "squash and merge"! I also think this could be merged into master.

@etiennebr yes definitely, I plan on making a PR to the README to update the macOS install instructions. The Rcpp bug has thrown an extra wrench in the works, but hopefully that won't take too long to get to CRAN. The configure.args etc on its own is relatively straightforward...

@edzer
Copy link
Member

edzer commented Apr 1, 2020

If someone could help to squash this before I merge, the would be great!

@ateucher
Copy link
Contributor Author

ateucher commented Apr 1, 2020

@edzer I usually use the "squash and merge" option in the dropdown in the green merge button. Then you can edit the commit message (I'd probably make it something like):

Add GitHub actions for macOS
* split actions into two files - one for testing with Postgres and one for macOS/Windows
* fix example that was causing errors

Or I can give it a go locally, then force-push, whichever you'd prefer!

@ateucher
Copy link
Contributor Author

ateucher commented Apr 1, 2020

Actually this history is a mess. I'm going to create a new branch and PR...

@ateucher ateucher mentioned this pull request Apr 1, 2020
@ateucher
Copy link
Contributor Author

ateucher commented Apr 1, 2020

Closing in favour of #1330

@ateucher ateucher closed this Apr 1, 2020
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

Successfully merging this pull request may close these issues.

3 participants