Skip to content

Commit

Permalink
reverting, putting #2212 on hold
Browse files Browse the repository at this point in the history
  • Loading branch information
edzer committed Mar 20, 2024
1 parent ccd0ec0 commit 97b4c3b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# version 1.0-16

* unless the env. variable `ADD_SF_NAMESPACE` is set to `false`, `sf` objects contain a new attribute, a dummy function called `.sf_namespace`, which is only there to force loading the `sf` namespace when it has not been loaded so far, e.g. for proper printing or plotting of an `sf` object when `library(sf)` has not been called; #2212, #2277 by Mike Mahoney

* `st_sample()` works when unprojected polygon geometry crosses the antemeridian; #2331

* clean up and modernization of S3 registration of methods and tests; #2285, #2288, #2316, #2341, #2342, by @olivroy
Expand Down
2 changes: 1 addition & 1 deletion R/sf.R
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ st_sf = function(..., agr = NA_agr_, row.names,
if (! missing(crs))
st_crs(df) = crs

if (Sys.getenv("ADD_SF_NAMESPACE") != "false")
if (Sys.getenv("ADD_SF_NAMESPACE") == "true")
attr(df, ".sf_namespace") <- .sf_namespace

df
Expand Down

0 comments on commit 97b4c3b

Please sign in to comment.