steno-aarhus / osdc

Open-Source Diabetes Classifier: an R package to classify diabetes status in Danish registers
https://steno-aarhus.github.io/osdc/
Other
1 stars 1 forks source link

fix: remove sysdata.rda that contains the same as variable-description.rda #123

Closed signekb closed 3 months ago

signekb commented 3 months ago

Description

I noticed that under the R folder there's a sysdata.Rda that seems to contain the same as data/variable-description.Rda. I assume that we don't want data in the R folder?

lwjohnst86 commented 3 months ago

Ah, maybe should have explained this file. This sysdata file gets generated whenever you use usethis::use_data(internal = TRUE). I need to confirm, this but I tried to run some code without the internal data, for instance for the verify_required_variables(), and it didn't work. I think it is because data in the data/ folder is "lazy loaded", meaning it is only loaded when it is actively called. But internal functions I guess can't easily actively call the data there, so it has to be internal.

signekb commented 3 months ago

Ah! Alrighty! Will close this then 👍