Skip to content
New issue

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

revamp pkg API #19

Open
sckott opened this issue Jun 29, 2016 · 0 comments
Open

revamp pkg API #19

sckott opened this issue Jun 29, 2016 · 0 comments
Assignees

Comments

@sckott
Copy link
Owner

sckott commented Jun 29, 2016

e.g,

  • get metadata: sp_<data source>_meta (e.g., sp_bhl_meta)
  • fetch full text: sp_<data source>_fetch (e.g., sp_bhl_fetch)
  • save full text: sp_<data source>_save (e.g., sp_bhl_save)

perhaps simplify to:

  • get metadata: sp_meta w/ S3 dispatch (e.g., sp_meta.bhl, sp_meta.plos, etc.)
  • fetch full text: sp_fetch (e.g., sp_fetch)
  • save full text: sp_save (e.g., sp_save)

eg.:

geom <- 'POLYGON((-124.07 41.48,-119.99 41.48,-119.99 35.57,-124.07 35.57,-124.07 41.48))'
sp_occ(geometry = geom, from = "idigbio") %>% 
  ~~sp_list()~~ # should get rid of sp_list probably, just pull out taxon list internally
  sp_meta() %>% 
  sp_fetch()

pseuocode

get occurrence data %>% 
    assert what you want to search on from occ. data %>% 
    search literature source, get metadata %>% 
    fetch full text %>% 

a) 
    save text to disk %>% 

b) 
    extract text %>% 
    tidy data %>% 
    plot/analyze
sckott added a commit that referenced this issue Jul 3, 2016
…fetch

also contributes to #19 with renaming fxns to have similar names for similar things done
bump patch version
@sckott sckott self-assigned this Jul 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant