Comments (6)
Good idea. We may be able to do this for some kinds of options, but not all.
Another option is that I currently have a parameter for each of the source data pkgs, gbifopts
, 'rinatopts', etc. in which you can specify the arguments for searching each data source, e.g. https://github.com/ropensci/occdat/blob/master/R/occ.r#L27
Does that work?
from spocc.
Why not just pass the extras with ...
for now? It would be good to just keep track of a list for now, build everything and standardize once they are working.
from spocc.
I was thinking there are some pretty standard types of options we'll want to pass. So the dates example it makes sense to just let users pass dates as one format and then we can parse it for each package. Maybe we should have a table of all the different options of each API and see which we want to include, and which we could standardize.
from spocc.
I am more or less doing ...
, but I didn't know of a way to do multiple ...
's in a single function, so I pass by default empty lists to a do.call
call - and user can populate each list if they want to specify parameters.
from spocc.
@emhart yeah, good idea to start thinking about standardizing
from spocc.
Possible options to bring into the main occ
function as standardized across sources:
ChangeTo | gbif | bison | inat | npn | ebird | ecoengine | Notes |
---|---|---|---|---|---|---|---|
limit | limit | count | maxresults | nope | max | page = "all" | - |
geometry | geometry | aoibbox | bounds | nope | nope | bbox | 1 |
curlopts | callopts | callopts | nope | NA | ... | foptions | - |
I'm not sure many others are possible to make available across sources. Will keep looking.
For these params to use across sources, should just force apply to all applicable sources. And tell user to just pass args to individual sources if they want different settings for different sources
1: This will take some converting of bounds from inat into a WKT - geometry
for gbif and aoi
for bison already accept WKT
from spocc.
Related Issues (20)
- occ "gbif" search is not working HOT 2
- Add option to use GBIF downloads in addition to search HOT 2
- Add option to use auk for bulk ebird data
- drop ecoengine as an option: pkg archived on cran
- failing cran checks - due to vcr change most likely
- has_coords not functioning as expected HOT 1
- error with occ2df HOT 2
- occ2df with coordinate uncertainty and occurrence status HOT 4
- error with the limitation extractign data from OBIS HOT 4
- Add Cogent Server Status Messages
- always return latitude and longitude as numeric values HOT 1
- Resolving "non-zero exit status" HOT 1
- Citing GBIF data properly
- Search with occ does not match the inatopts HOT 2
- Remove rbison
- Change to new cran checks badge URL HOT 1
- submit new version to CRAN? HOT 8
- occ() reports more records returned than found
- how can I save my search results in csv, can anyone help me ?
- Pending update to ridigbio will break spocc! HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spocc.