We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Wondering if lwgeom should be listed under Imports in DESCRIPTION file rather than Suggests
lwgeom
areaPolygon <- sf::st_read(dsn = system.file("extdata", "strata.shp",package = "survdat"), quiet = T) sf::st_area(areaPolygon)
returns an Error message:
Error in st_area.sfc(st_geometry(x), ...) : package lwgeom required, please install it first
Maybe this is intended. If so, then feel free to close this.
I have since installed lwgeom and all is fine
The text was updated successfully, but these errors were encountered:
Yes, this is intended.
Sorry, something went wrong.
Hello @edzer, I believe I have stumbled upon a small issue that arises from this as well.
I'm building a package that imports {sf}, and more specifically I use st_length() in one of my functions.
{sf}
st_length()
I initially added {sf} to my package "Imports", but when I checked it I got a few {lwgeom} related errors:
{lwgeom}
Running examples in 'gtfstools-Ex.R' failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: get_trip_speed > ### Title: Get trip speed > ### Aliases: get_trip_speed > > ### ** Examples > > data_path <- system.file("extdata/spo_gtfs.zip", package = "gtfstools") > > gtfs <- read_gtfs(data_path) > > trip_speed <- get_trip_speed(gtfs) Error in sf::st_length(trips_geometries) : package lwgeom required, please install it first
This error happens when the examples are running, but some similar errors happen with the tests.
Then I added {lwgeom} to imports. The check runs fine, but in the end I got a note: NOTE: Namespaces in Imports field not imported from: 'lwgeom'
NOTE: Namespaces in Imports field not imported from: 'lwgeom'
Perhaps you have an idea on how to deal with this? Cheers!
No branches or pull requests
Wondering if
lwgeom
should be listed under Imports in DESCRIPTION file rather than Suggestsreturns an Error message:
Error in st_area.sfc(st_geometry(x), ...) :
package lwgeom required, please install it first
Maybe this is intended. If so, then feel free to close this.
I have since installed
lwgeom
and all is fineThe text was updated successfully, but these errors were encountered: