bcgov / bcdata

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

Error using bcdc_search and organization facet #313

Closed stephhazlitt closed 1 year ago

stephhazlitt commented 1 year ago

data-innovation-program-dip is listed as a valid organization facet value (with 55 records), however bcdc_search(organization = data-innovation-program-dip) errors as it returns 0 records. The 55 records are indeed surfaced through the web interface using the organization facet. This same work flow works for other organization values, e.g. food-safety-and-inspection.

bcdata::bcdc_search_facets()
#>                 facet count
#> 1              sector    50
#> 2              sector    36
#> 3              sector   187
#> 4              sector  1788
#> 5              sector    76
#> 6              sector    97
#> 7              sector   473
#> 8              sector    80
#> 9              sector   332
#> 10         res_format    34
#> 11         res_format    20
#> 12         res_format   613
#> 13         res_format   303
#> 14         res_format     1
#> 15         res_format   865
#> 16         res_format    30
#> 17         res_format   364
#> 18         res_format   165
#> 19         res_format    60
#> 20         res_format   475
#> 21         res_format    10
#> 22         res_format  1113
#> 23         res_format    29
#> 24         res_format   868
#> 25         res_format    36
#> 26         res_format    84
#> 27         res_format    15
#> 28         res_format    17
#> 29         res_format   361
#> 30         res_format   313
#> 31         res_format   536
#> 32         res_format   125
#> 33             groups    11
#> 34             groups     4
#> 35             groups     2
#> 36             groups     9
#> 37             groups    20
#> 38             groups     6
#> 39             groups    14
#> 40             groups    11
#> 41             groups    32
#> 42             groups    45
#> 43             groups     4
#> 44             groups     3
#> 45             groups     1
#> 46             groups    30
#> 47             groups     4
#> 48             groups    10
#> 49             groups    26
#> 50         license_id    66
#> 51         license_id    12
#> 52         license_id    13
#> 53         license_id     5
#> 54         license_id     3
#> 55         license_id    61
#> 56         license_id  1601
#> 57         license_id     2
#> 58         license_id     5
#> 59         license_id     2
#> 60         license_id     1
#> 61         license_id    15
#> 62         license_id  1443
#> 63  download_audience  2277
#> 64  download_audience   223
#> 65  download_audience    51
#> 66  download_audience   174
#> 67  download_audience     8
#> 68  download_audience   496
#> 69       organization     2
#> 70       organization    25
#> 71       organization    25
#> 72       organization    35
#> 73       organization     1
#> 74       organization   423
#> 75       organization     5
#> 76       organization    14
#> 77       organization     1
#> 78       organization     1
#> 79       organization    13
#> 80       organization     1
#> 81       organization     1
#> 82       organization     9
#> 83       organization     4
#> 84       organization     1
#> 85       organization     1
#> 86       organization     5
#> 87       organization     1
#> 88       organization     1
#> 89       organization    22
#> 90       organization    23
#> 91       organization    54
#> 92       organization    19
#> 93       organization    13
#> 94       organization     4
#> 95       organization     3
#> 96       organization    49
#> 97       organization    71
#> 98       organization   122
#> 99       organization    22
#> 100      organization     8
#> 101      organization     6
#> 102      organization    45
#> 103      organization    88
#> 104      organization     3
#> 105      organization    18
#> 106      organization     2
#> 107      organization    17
#> 108      organization     3
#> 109      organization     2
#> 110      organization     3
#> 111      organization    11
#> 112      organization    13
#> 113      organization     1
#> 114      organization    10
#> 115      organization     3
#> 116      organization     1
#> 117      organization     4
#> 118      organization     1
#> 119      organization     1
#> 120      organization    17
#> 121      organization     1
#> 122      organization     9
#> 123      organization     7
#> 124      organization     2
#> 125      organization     1
#> 126      organization     1
#> 127      organization    13
#> 128      organization     1
#> 129      organization     3
#> 130      organization     6
#> 131      organization    24
#> 132      organization     3
#> 133      organization   198
#> 134      organization     3
#> 135      organization     3
#> 136      organization     1
#> 137      organization    45
#> 138      organization     2
#> 139      organization     2
#> 140      organization   107
#> 141      organization     1
#> 142      organization    32
#> 143      organization     6
#> 144      organization     5
#> 145      organization     2
#> 146      organization     2
#> 147      organization     9
#> 148      organization     1
#> 149      organization     4
#> 150      organization     1
#> 151      organization    17
#> 152      organization     8
#> 153      organization     3
#> 154      organization    21
#> 155      organization     7
#> 156      organization    33
#> 157      organization   392
#> 158      organization     4
#> 159      organization    64
#> 160      organization    41
#> 161      organization    17
#> 162      organization    35
#> 163      organization     2
#> 164      organization    55
#> 165      organization    26
#> 166      organization     6
#> 167      organization    39
#> 168      organization     4
#> 169      organization    16
#> 170      organization    57
#> 171      organization    10
#> 172      organization     2
#> 173      organization     2
#> 174      organization     4
#> 175      organization     5
#> 176      organization    21
#> 177      organization    45
#> 178      organization    53
#> 179      organization     1
#> 180      organization     3
#> 181      organization     1
#> 182      organization     1
#> 183      organization    35
#> 184      organization    55
#> 185      organization     3
#> 186      organization    28
#> 187      organization    15
#> 188      organization     8
#> 189      organization     2
#> 190      organization    22
#> 191      organization    10
#> 192      organization     1
#> 193      organization     1
#> 194      organization     1
#> 195      organization     2
#> 196      organization     1
#> 197      organization     1
#> 198      organization    26
#> 199      organization     5
#> 200      organization     1
#> 201      organization     1
#> 202      organization     2
#> 203      organization     2
#> 204      organization     1
#> 205      organization    34
#> 206      organization     6
#> 207      organization    65
#> 208      organization    43
#> 209      organization    46
#> 210      organization     1
#> 211      organization    45
#> 212      organization     1
#> 213      organization     9
#> 214      organization     6
#> 215      organization    15
#> 216      organization    16
#> 217      organization     1
#>                                                            display_name
#> 1                                                        Transportation
#> 2                                                       Social Services
#> 3                                                               Service
#> 4                                                     Natural Resources
#> 5                                                               Justice
#> 6                                                     Health and Safety
#> 7                                                               Finance
#> 8                                                             Education
#> 9                                                               Economy
#> 10                                                                  zip
#> 11                                                                  xml
#> 12                                                                 xlsx
#> 13                                                                  xls
#> 14                                                                 wmts
#> 15                                                                  wms
#> 16                                                                  txt
#> 17                                                                  shp
#> 18                                                                  pdf
#> 19                                                                other
#> 20                                                           oracle_sde
#> 21                                                         openapi-json
#> 22                                                             multiple
#> 23                                                                  kmz
#> 24                                                                  kml
#> 25                                                                 json
#> 26                                                                 html
#> 27                                                                 gpkg
#> 28                                                              geojson
#> 29                                                                 fgdb
#> 30                                                                  e00
#> 31                                                                  csv
#> 32                                                          arcgis_rest
#> 33                                              Wildfire Risk Reduction
#> 34                                        Wildfire - Historical Seasons
#> 35                                            Wildfire - Current Season
#> 36                                        Vegetation Resource Inventory
#> 37                                    Strategic Land and Resource Plans
#> 38                                                         ParcelMap BC
#> 39                            Old Growth Technical Advisory Panel (TAP)
#> 40                                                Housing Needs Reports
#> 41                                           Environmental Reporting BC
#> 42                                              Data Innovation Program
#> 43                          Connectivity in BC - Request to Participate
#> 44                                                   Connectivity in BC
#> 45                       Coastal Resource Information Management System
#> 46                                                      Census Profiles
#> 47                                                             COVID-19
#> 48                                           BC Government API Registry
#> 49                                                         B.C. Tourism
#> 50                                       Statistics Canada Open Licence
#> 51                                  Open Government Licence – TransLink
#> 52             Open Government Licence – Municipality of North Cowichan
#> 53                Open Government Licence – Industry Training Authority
#> 54                             Open Government Licence - Destination BC
#> 55                                     Open Government Licence - Canada
#> 56                           Open Government Licence - British Columbia
#> 57                              Open Government Licence - BC Assessment
#> 58                               Open Data Licence for ICBC Information
#> 59             Open Data Commons - Public Domain Dedication and Licence
#> 60                            King's Printer Licence - British Columbia
#> 61                                       Elections BC Open Data Licence
#> 62                                                          Access Only
#> 63                                                               Public
#> 64                                                     Not downloadable
#> 65                                                          Named users
#> 66                                                                   NA
#> 67                                        Government and Business BCeID
#> 68                                                           Government
#> 69                     Workplace Technology and Application Development
#> 70                                                 Wildlife and Habitat
#> 71                                  Water Protection and Sustainability
#> 72                                                     Water Management
#> 73                                                     Visitor Services
#> 74                                                 Treasury Board Staff
#> 75                                              Transportation Services
#> 76                                                            TransLink
#> 77                                                       Tourism Branch
#> 78                                                Timber Pricing Branch
#> 79                                      Tenure and Resource Stewardship
#> 80                                                Student Certification
#> 81                                                     Strategic Policy
#> 82                                             Species at Risk Recovery
#> 83                           Specialized Intervention and Youth Justice
#> 84                                          Socio-Economic Partnerships
#> 85                                              Small Business Programs
#> 86                                                      SkilledTradesBC
#> 87                         Service Analytics and Standards - Service BC
#> 88                            Sector Partnerships and Emergency Support
#> 89                                                         RoadSafetyBC
#> 90                                                River Forecast Centre
#> 91                                     Resource Planning and Assessment
#> 92                                                Research and Analysis
#> 93                                                      Research Branch
#> 94                                       Rehabilitation and Maintenance
#> 95                      Regional and Inclusive Economic Recovery Branch
#> 96                                     Regional Operations - West Coast
#> 97                              Regional Operations - Thompson Okanagan
#> 98                                    Regional Operations - South Coast
#> 99                                         Regional Operations - Skeena
#> 100                                       Regional Operations - Omineca
#> 101                                     Regional Operations - Northeast
#> 102                             Regional Operations - Kootenay Boundary
#> 103                                       Regional Operations - Cariboo
#> 104                                                 Regional Operations
#> 105                                      Recreation Sites and Trails BC
#> 106                                       Real Estate Business Services
#> 107                                                               Range
#> 108                                  Quality Assurance and Child Safety
#> 109                         Public Sector Employers Council Secretariat
#> 110                                                    Public Libraries
#> 111                                        Public Engagement and Design
#> 112                      Provincial Stewardship Strategies and Planning
#> 113                          Provincial Interface and Partnerships Team
#> 114                                                   Property Taxation
#> 115                                                Procurement Services
#> 116                                    Privacy, Compliance and Training
#> 117                                              Post-Secondary Finance
#> 118                                    Policy and Stakeholder Relations
#> 119                                              Policy and Legislation
#> 120                                               Policing and Security
#> 121                                             Plant and Animal Health
#> 122                                    Planning and Land Use Management
#> 123                                    Pharmaceutical Services Division
#> 124 Permitting / Authorizations and Statutory Decision Making Solutions
#> 125                                            Passenger Transportation
#> 126                                                    Open Information
#> 127                                      Municipality of North Cowichan
#> 128                                                    Multiculturalism
#> 129                                             Mountain Resorts Branch
#> 130                                Mines and Mineral Resources Division
#> 131                                                      Mineral Titles
#> 132               Major Projects and Strategic Consultation Initiatives
#> 133                         Local Government Infrastructure and Finance
#> 134                                      Liquor and Cannabis Regulation
#> 135                                                 Liquor Distribution
#> 136                                  Legislation, Policy and Governance
#> 137                                                        Lands Branch
#> 138         Labour Market Analytics, Forecasting and Information Branch
#> 139                           Laboratory, Diagnostic and Blood Services
#> 140                                                Knowledge Management
#> 141                                                      King's Printer
#> 142                                             International Marketing
#> 143                             Intergovernmental Relations Secretariat
#> 144                           Insurance Corporation of British Columbia
#> 145                       Innovation, Strategy, Policy and Coordination
#> 146                                       Information Management - TRAN
#> 147                                        Information Management - CFD
#> 148                               Information Innovation and Technology
#> 149                                    Implementation and Land Services
#> 150                                               Immigrant Integration
#> 151                                                     Heritage Branch
#> 152                                                        HealthLinkBC
#> 153                                       Health, Safety and Permitting
#> 154                    Health Sector Information Analysis and Reporting
#> 155             Health Authority - Provincial Health Services Authority
#> 156                                            Governance and Structure
#> 157                                                        GeoBC Branch
#> 158                                       Gaming Policy and Enforcement
#> 159                                               Forest Tenures Branch
#> 160                       Forest Science, Planning and Practices Branch
#> 161                   Forest Improvement and Research Management Branch
#> 162                                Forest Analysis and Inventory Branch
#> 163                                          Food Safety and Inspection
#> 164                               Fish, Wildlife and Habitat Management
#> 165                              Fish and Wildlife Compensation Program
#> 166                                            Fish and Aquatic Habitat
#> 167                           Financial Reporting and Advisory Services
#> 168                                      Extension and Support Services
#> 169                                   Environmental Protection Division
#> 170                        Environmental Monitoring and Analysis Branch
#> 171                      Environmental Emergencies and Land Remediation
#> 172                                     Environmental Assessment Office
#> 173                                                  Environment Canada
#> 174                      Employment and Labour Market Services Division
#> 175                                             Emergency Management BC
#> 176                                                        Elections BC
#> 177                                                 Education Analytics
#> 178                                                          Ecosystems
#> 179                                          Economics and Trade Branch
#> 180                                                      Destination BC
#> 181                                            Deputy Minister's Office
#> 182                                                     Debt Management
#> 183                                                      DataBC Program
#> 184                                       Data Innovation Program (DIP)
#> 185                                                    Criminal Justice
#> 186                                                      Court Services
#> 187                                                         Corrections
#> 188                                     Corporate Policy and Priorities
#> 189                                                   Coroner's Service
#> 190                                        Construction and Maintenance
#> 191                                        Connected Communities Branch
#> 192                                          Compliance and Enforcement
#> 193                                    Compensation Policy and Programs
#> 194                                             Community Gaming Grants
#> 195                                     Community Care Support Services
#> 196                           Commercial Vehicle Safety and Enforcement
#> 197                                     Colleges and Skills Development
#> 198                                          Climate Action Secretariat
#> 199                                             Civil Forfeiture Office
#> 200                                    Child Care Programs and Services
#> 201                               Business and Communications Solutions
#> 202                            British Columbia Vital Statistics Agency
#> 203                    British Columbia Container Trucking Commissioner
#> 204                                                  Better Regulations
#> 205                                                 BC Wildfire Service
#> 206                                                    BC Timber Sales 
#> 207                                                            BC Stats
#> 208                                      BC Parks - Provincial Services
#> 209                                           BC Oil and Gas Commission
#> 210                                        BC Hydro and Power Authority
#> 211                                                BC Geological Survey
#> 212                                                  BC Film Commission
#> 213                                             BC Assessment Authority
#> 214                                                     BC Arts Council
#> 215                                                         Archaeology
#> 216                                        Agricultural Land Commission
#> 217                     Access and Directory Management Services (ADMS)
#>                                                                  name
#> 1                                                      Transportation
#> 2                                                     Social Services
#> 3                                                             Service
#> 4                                                   Natural Resources
#> 5                                                             Justice
#> 6                                                   Health and Safety
#> 7                                                             Finance
#> 8                                                           Education
#> 9                                                             Economy
#> 10                                                                zip
#> 11                                                                xml
#> 12                                                               xlsx
#> 13                                                                xls
#> 14                                                               wmts
#> 15                                                                wms
#> 16                                                                txt
#> 17                                                                shp
#> 18                                                                pdf
#> 19                                                              other
#> 20                                                         oracle_sde
#> 21                                                       openapi-json
#> 22                                                           multiple
#> 23                                                                kmz
#> 24                                                                kml
#> 25                                                               json
#> 26                                                               html
#> 27                                                               gpkg
#> 28                                                            geojson
#> 29                                                               fgdb
#> 30                                                                e00
#> 31                                                                csv
#> 32                                                        arcgis_rest
#> 33                                            wildfire-risk-reduction
#> 34                                                wildfire-historical
#> 35                                                   wildfire-current
#> 36                                      vegetation-resource-inventory
#> 37                                                               slrp
#> 38                                                               pmbc
#> 39                                                     old-growth-tap
#> 40                                              housing-needs-reports
#> 41                                         environmental-reporting-bc
#> 42                                            data-innovation-program
#> 43                          connectivity-in-bc-request-to-participate
#> 44                                                 connectivity-in-bc
#> 45                                                              crims
#> 46                                                    census-profiles
#> 47                                                           covid-19
#> 48                                         bc-government-api-registry
#> 49                                                         bc-tourism
#> 50                                                                 21
#> 51                                                                 48
#> 52                                                                 44
#> 53                                                                 50
#> 54                                                                 43
#> 55                                                                 24
#> 56                                                                  2
#> 57                                                                 47
#> 58                                                                 49
#> 59                                                                 45
#> 60                                                                 25
#> 61                                                                 42
#> 62                                                                 22
#> 63                                                             Public
#> 64                                                   Not downloadable
#> 65                                                        Named users
#> 66                                                                 NA
#> 67                                      Government and Business BCeID
#> 68                                                         Government
#> 69                   workplace-technology-and-application-development
#> 70                                               wildlife-and-habitat
#> 71                                water-protection-and-sustainability
#> 72                                                   water-management
#> 73                                                   visitor-services
#> 74                                               treasury-board-staff
#> 75                                            transportation-services
#> 76                                                          translink
#> 77                                                            tourism
#> 78                                                     timber-pricing
#> 79                                    tenure-and-resource-stewardship
#> 80                                              student-certification
#> 81                                                   strategic-policy
#> 82                                           species-at-risk-recovery
#> 83                         specialized-intervention-and-youth-justice
#> 84                                        socio-economic-partnerships
#> 85                                            small-business-programs
#> 86                                                    skilledtradesbc
#> 87                                                         service-bc
#> 88                          sector-partnerships-and-emergency-support
#> 89                                                       roadsafetybc
#> 90                                              river-forecast-centre
#> 91                                   resource-planning-and-assessment
#> 92                                              research-and-analysis
#> 93                                                           research
#> 94                                     rehabilitation-and-maintenance
#> 95                           regional-and-inclusive-economic-recovery
#> 96                                     regional-operations-west-coast
#> 97                              regional-operations-thompson-okanagan
#> 98                                    regional-operations-south-coast
#> 99                                         regional-operations-skeena
#> 100                                       regional-operations-omineca
#> 101                                     regional-operations-northeast
#> 102                             regional-operations-kootenay-boundary
#> 103                                       regional-operations-cariboo
#> 104                                               regional-operations
#> 105                                    recreation-sites-and-trails-bc
#> 106                                     real-estate-business-services
#> 107                                                             range
#> 108                                quality-assurance-and-child-safety
#> 109                       public-sector-employers-council-secretariat
#> 110                                                  public-libraries
#> 111                                                citizen-engagement
#> 112                    provincial-stewardship-strategies-and-planning
#> 113                        provincial-interface-and-partnerships-team
#> 114                                                 property-taxation
#> 115                                              procurement-services
#> 116                                           privacy-and-legislation
#> 117                                            post-secondary-finance
#> 118                                  policy-and-stakeholder-relations
#> 119                                            policy-and-legislation
#> 120                                             policing-and-security
#> 121                                           plant-and-animal-health
#> 122                                  planning-and-land-use-management
#> 123                                  pharmaceutical-services-division
#> 124 permitting-authorizations-and-statutory-decision-making-solutions
#> 125                                          passenger-transportation
#> 126                                                  open-information
#> 127                                                    north-cowichan
#> 128                                                  multiculturalism
#> 129                                                  mountain-resorts
#> 130                              mines-and-mineral-resources-division
#> 131                                                    mineral-titles
#> 132             major-projects-and-strategic-consultation-initiatives
#> 133                       local-government-infrastructure-and-finance
#> 134                                    liquor-and-cannabis-regulation
#> 135                                               liquor-distribution
#> 136                                 legislation-policy-and-governance
#> 137                                                             lands
#> 138        labour-market-analytics-forecasting-and-information-branch
#> 139                          laboratory-diagnostic-and-blood-services
#> 140                                              knowledge-management
#> 141                                                    king-s-printer
#> 142                                           international-marketing
#> 143                           intergovernmental-relations-secretariat
#> 144                         insurance-corporation-of-british-columbia
#> 145                       innovation-strategy-policy-and-coordination
#> 146                                       information-management-tran
#> 147                                        information-management-cfd
#> 148                             information-innovation-and-technology
#> 149                                  implementation-and-land-services
#> 150                                             immigrant-integration
#> 151                                                          heritage
#> 152                                                      healthlinkbc
#> 153                                  health-and-safety-and-permitting
#> 154                  health-sector-information-analysis-and-reporting
#> 155             health-authority-provincial-health-services-authority
#> 156                                          governance-and-structure
#> 157                                                             geobc
#> 158                                     gaming-policy-and-enforcement
#> 159                                                    forest-tenures
#> 160                             forest-science-planning-and-practices
#> 161                        forest-improvement-and-research-management
#> 162                                     forest-analysis-and-inventory
#> 163                                        food-safety-and-inspection
#> 164                              fish-wildlife-and-habitat-management
#> 165                            fish-and-wildlife-compensation-program
#> 166                                          fish-and-aquatic-habitat
#> 167                         financial-reporting-and-advisory-services
#> 168                                    extension-and-support-services
#> 169                                 environmental-protection-division
#> 170                      environmental-monitoring-and-analysis-branch
#> 171                    environmental-emergencies-and-land-remediation
#> 172                                   environmental-assessment-office
#> 173                                                environment-canada
#> 174                    employment-and-labour-market-services-division
#> 175                                           emergency-management-bc
#> 176                                                      elections-bc
#> 177                                               education-analytics
#> 178                                                        ecosystems
#> 179                                                economic-and-trade
#> 180                                                    destination-bc
#> 181                                          deputy-minister-s-office
#> 182                                                   debt-management
#> 183                                                            databc
#> 184                                       data-innovation-program-dip
#> 185                                                  criminal-justice
#> 186                                                    court-services
#> 187                                                       corrections
#> 188                                   corporate-policy-and-priorities
#> 189                                                 coroner-s-service
#> 190                                      construction-and-maintenance
#> 191                                      connected-communities-branch
#> 192                                        compliance-and-enforcement
#> 193                                  compensation-policy-and-programs
#> 194                                           community-gaming-grants
#> 195                                   community-care-support-services
#> 196                         commercial-vehicle-safety-and-enforcement
#> 197                                   colleges-and-skills-development
#> 198                                        climate-action-secretariat
#> 199                                           civil-forfeiture-office
#> 200                                  child-care-programs-and-services
#> 201                             business-and-communications-solutions
#> 202                          british-columbia-vital-statistics-agency
#> 203                  british-columbia-container-trucking-commissioner
#> 204                                                better-regulations
#> 205                                               bc-wildfire-service
#> 206                                                   bc-timber-sales
#> 207                                                          bc-stats
#> 208                                      bc-parks-provincial-services
#> 209                                         bc-oil-and-gas-commission
#> 210                                      bc-hydro-and-power-authority
#> 211                                              bc-geological-survey
#> 212                                                bc-film-commission
#> 213                                           bc-assessment-authority
#> 214                                                   bc-arts-council
#> 215                                                       archaeology
#> 216                                      agricultural-land-commission
#> 217                     access-and-directory-management-services-adms

works

bcdata::bcdc_search(organization = "food-safety-and-inspection")
#> List of B.C. Data Catalogue Records
#> Number of records: 1
#> Titles:
#> 1: Licensed Seafood and Meat Operators - point features (arcgis_rest)
#>  ID: 4505e2a8-bb87-41eb-85ce-cb7267c28110
#>  Name: licensed-seafood-and-meat-operators-point-features
#> 
#> Access a single record by calling `bcdc_get_record(ID)` with the ID
#>  from the desired record.

errors

bcdata::bcdc_search(organization = "data-innovation-program-dip")
#> List of B.C. Data Catalogue Records
#> Number of records: 0
#> Titles:
#> Error in `map2()`:
#> ℹ In index: 1.
#> Caused by error in `x[[.y]]`:
#> ! subscript out of bounds

#> Backtrace:
#>      ▆
#>   1. ├─base::tryCatch(...)
#>   2. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
#>   3. │   ├─base (local) tryCatchOne(...)
#>   4. │   │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
#>   5. │   └─base (local) tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
#>   6. │     └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
#>   7. │       └─base (local) doTryCatch(return(expr), name, parentenv, handler)
#>   8. ├─base::withCallingHandlers(...)
#>   9. ├─base::saveRDS(...)
#>  10. ├─base::do.call(...)
#>  11. ├─base (local) `<fn>`(...)
#>  12. ├─global `<fn>`(input = base::quote("used-aidi_reprex.R"))
#>  13. │ └─rmarkdown::render(input, quiet = TRUE, envir = globalenv(), encoding = "UTF-8")
#>  14. │   └─knitr::knit(knit_input, knit_output, envir = envir, quiet = quiet)
#>  15. │     └─knitr:::process_file(text, output)
#>  16. │       ├─base::withCallingHandlers(...)
#>  17. │       ├─knitr:::process_group(group)
#>  18. │       └─knitr:::process_group.block(group)
#>  19. │         └─knitr:::call_block(x)
#>  20. │           └─knitr:::block_exec(params)
#>  21. │             └─knitr:::eng_r(options)
#>  22. │               ├─knitr:::in_input_dir(...)
#>  23. │               │ └─knitr:::in_dir(input_dir(), expr)
#>  24. │               └─knitr (local) evaluate(...)
#>  25. │                 └─evaluate::evaluate(...)
#>  26. │                   └─evaluate:::evaluate_call(...)
#>  27. │                     ├─evaluate (local) handle(...)
#>  28. │                     │ └─base::try(f, silent = TRUE)
#>  29. │                     │   └─base::tryCatch(...)
#>  30. │                     │     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
#>  31. │                     │       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
#>  32. │                     │         └─base (local) doTryCatch(return(expr), name, parentenv, handler)
#>  33. │                     ├─base::withCallingHandlers(...)
#>  34. │                     ├─base::withVisible(value_fun(ev$value, ev$visible))
#>  35. │                     └─knitr (local) value_fun(ev$value, ev$visible)
#>  36. │                       └─knitr (local) fun(x, options = options)
#>  37. │                         ├─base::withVisible(knit_print(x, ...))
#>  38. │                         ├─knitr::knit_print(x, ...)
#>  39. │                         └─knitr:::knit_print.default(x, ...)
#>  40. │                           └─evaluate (local) normal_print(x)
#>  41. │                             ├─base::print(x)
#>  42. │                             └─bcdata:::print.bcdc_recordlist(x)
#>  43. │                               └─purrr::imap(...)
#>  44. │                                 └─purrr::map2(.x, vec_index(.x), .f, ...)
#>  45. │                                   └─purrr:::map2_("list", .x, .y, .f, ..., .progress = .progress)
#>  46. │                                     ├─purrr:::with_indexed_errors(...)
#>  47. │                                     │ └─base::withCallingHandlers(...)
#>  48. │                                     ├─purrr:::call_with_cleanup(...)
#>  49. │                                     └─bcdata (local) .f(.x[[i]], .y[[i]], ...)
#>  50. │                                       ├─base::nrow(bcdc_tidy_resources(x[[.y]]))
#>  51. │                                       └─bcdata::bcdc_tidy_resources(x[[.y]])
#>  52. └─purrr (local) `<fn>`(`<sbscOOBE>`)
#>  53.   └─cli::cli_abort(...)
#>  54.     └─rlang::abort(...)
stephhazlitt commented 1 year ago

Closing as this is now a duplicate of #314 and #315.