Skip to content

Commit

Permalink
Temporarily disable chunk
Browse files Browse the repository at this point in the history
@djnavarro any idea what's going on here? It was failing on GHA with:

```
Error in st_crs.character("+proj=lcc +datum=WGS84") :
19
  invalid crs: +proj=lcc +datum=WGS84
```
  • Loading branch information
hadley committed Aug 17, 2020
1 parent 0cd8754 commit 1d75c6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maps.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ In ggplot2, the CRS is controlled by `coord_sf()`, which ensures that every laye

[^first-layer]: If there are multiple data sets with a different associated CRS, it uses the CRS from the first layer.

```{r}
```{r, eval = FALSE}
ggplot(oz_votes) +
geom_sf() +
coord_sf(crs = st_crs("+proj=lcc +datum=WGS84"))
Expand Down

2 comments on commit 1d75c6c

@djnavarro
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No I don't, and it's driving me to distraction! I'll dig into this one later today

@djnavarro
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found it. As of version 0.9, sf handle CRS objects differently: https://www.r-spatial.org/r/2020/03/17/wkt.html#crs-objects-in-sf

There are a few other inaccuracies this introduces to the maps chapter. I'll open a new PR for this, and hopefully not mangle it in the process!

Please sign in to comment.