bcgov / bcgov/envair

importBC_data() error: "DATE_PST" not found

Open
#26 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
R
Stars
8
Forks
4
PR merge metrics
No merged PRs in 30d

Description

`importBC_data()` is throwing an error "DATE_PST" not found. For example, `importBC_data('Kamloops', 2015)` results in:

![image](https://github.com/bcgov/envair/assets/29107162/0c954f09-92b2-4f54-a7ea-26ca57e85646)

I suspect the failure is occuring at line 740 because `DATE_PST` was removed from `df_data` earlier, on line 711.

![image](https://github.com/bcgov/envair/assets/29107162/c637003d-3c9d-4f55-a4d3-1035ca7b071b)

Contributor guide

No contributing guide indexed for this repository

Research direction

Find the R source defining importBC_data() and inspect the code around lines 711 and 740, where DATE_PST is reportedly removed and then referenced. Run importBC_data('Kamloops', 2015) before and after the change; done means the call completes without the DATE_PST-not-found error.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.