bcgov / bcdata

An R package for searching & retrieving data from the B.C. Data Catalogue
https://bcgov.github.io/bcdata
Apache License 2.0
81 stars 12 forks source link

test on beta catalogue API #283

Closed ateucher closed 2 years ago

ateucher commented 2 years ago

WIP. Changes to fix #282

ateucher commented 2 years ago

To test this, you must set:

options("bcdata.catalogue_api_url" = "https://beta-catalogue.data.gov.bc.ca/api/3/")
options("bcdata.catalogue_gui_url" = "https://beta-catalogue.data.gov.bc.ca/")

This is currently set in tests/testhat/setup.R - we will need to comment that line out when this goes to production.

ateucher commented 2 years ago

@boshek we could consider using the new field bcdc_type in the resource tibble:

    type = safe_map_chr(x, "bcdc_type"),

See here.

It lists each resource as geographic, tabular, application, or webservice

ateucher commented 2 years ago

Also resource.resource_type and resource.resource_access_method

ateucher commented 2 years ago

/document

ateucher commented 2 years ago

/precompile

boshek commented 2 years ago

/precompile