Closed jk-brown closed 1 year ago
I'd vote to do something simpler!
my_criterion<- new_criterion(CONCENTRATIONS_CO2(),
years = 1951:2000,
obs_values = 301:350) # made-up time series
Or, given that our existing example already uses CO2, maybe something like
my_criterion<- new_criterion(GLOBAL_TAS(),
years = 1951:2000,
obs_values = seq(0.4, 1.0, length.out = 50) # made-up time series
Currently, the vignette has the following as a code chunk to show an example of how to define your own criterion:
That chunk won't run because I have the
metricdata_co2
saved as internal data so it can't be accessed for examples etc. Would it be better to 1) don't run that code chunk 2) make metricdata_co2 available so it can be used in the vignette example? 3) just change this portion of the vignette to say something like "it is possible for the user to define their own criterion if observed data are obtained." and link to thenew_criterion
documentation? 4) Assign the internal data to an object and use it for the vignette example: