Closed salvafern closed 1 year ago
EMODnetWFS
now depends on ows4R
version 0.3
or higher (i.e. the development version).
https://github.com/EMODnet/EMODnetWFS/blob/5c5ff422959c8fbde19cbf5ae2b2685e71aead00/DESCRIPTION#L30
You are using ows4R_0.2-1
.You should have gotten a warning I believe. If not we should look into it.
In any case, try upgrading the package and see if that fixes it.
Aah I see, I was installing the EMODnetWFS package locally so nothing changed for my version of ows4R. Thanks Anna!
How about adding this assertion
stopifnot(packageVersion("ows4R") >= '0.3')
in https://github.com/EMODnet/EMODnetWFS/blob/5ada1209b91514e135e78c82e02ca5d7021b5199/R/client.R#L31 ?
There were no warnings. Only an error in ows4R::WFSClient$new
most likely cause the old version of the package doesn't have the config argument
# Loading ISO 19139 XML schemas...
# Loading ISO 19115 codelists...
# Error in initialize(...) :
# unused argument (config = list(NULL, NULL, NULL, NULL, list(), NULL, NULL))
Or maybe a note in a contributing guide for now?
I think an error in the code would be no longer necessary once ows4R new version is on CRAN / when EMODnetWFS is installed from GitHub.
However this is solved if the user agent and config are removed in: https://github.com/EMODnet/EMODnetWFS/blob/5ada1209b91514e135e78c82e02ca5d7021b5199/R/client.R#L35
The issue is in
ows4R
when creating a new client.Happening in master branch in Windows.
Created on 2022-04-12 by the reprex package (v2.0.0)