Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix potential onLoad failure from getCapabilities call#271

Merged
ateucher merged 9 commits intomasterfrom
fix-onload-getcapabilities
Apr 27, 2021
Merged

Fix potential onLoad failure from getCapabilities call#271
ateucher merged 9 commits intomasterfrom
fix-onload-getcapabilities

Conversation

@ateucher
Copy link
Collaborator

@ateucher ateucher commented Apr 26, 2021

See warning: https://www.r-project.org/nosvn/R.check/r-patched-solaris-x86/bcdata-00check.html

  • Remove bcdc_get_wfs_records_xml from onLoad:
    • set get_capabilities_xml to NULL on pkg load
    • bcdc_get_wfs_records_xml() retrieves xml on first request and store for rest of the session
    • eliminate some redundant messages
  • Wrap example in try(), add missing skip_if_net_down()

- set get_capabilities_xml to NULL on pkg load
- bcdc_get_wfs_records_xml() retrieves xml on first request and store for rest of the session
- eliminate some redundant messages
@ateucher ateucher requested review from boshek and stephhazlitt April 26, 2021 22:31
@boshek
Copy link
Collaborator

boshek commented Apr 27, 2021

This is such an elegant solution.

@ateucher ateucher merged commit 521e8fd into master Apr 27, 2021
@ateucher ateucher deleted the fix-onload-getcapabilities branch April 27, 2021 20:34
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

Successfully merging this pull request may close these issues.

2 participants