idem-lab / epiwave.params

0 stars 0 forks source link

Error: 'create_epiwave_timeseries' is not an exported object from 'namespace:epiwave' #2

Closed SeniorKate closed 3 months ago

SeniorKate commented 3 months ago

create_epiwave_fixed_timeseries still calls create_epiwave_timeseries from epiwave and not epiwave.params, resulting in an error

function (dates, jurisdictions, value) 
{
  timeseries <- epiwave::create_epiwave_timeseries(dates = infection_days, 
    jurisdictions = jurisdictions, value = value)
  class(timeseries) <- c("epiwave_fixed_timeseries", class(timeseries))
  timeseries

Error: 'create_epiwave_timeseries' is not an exported object from 'namespace:epiwave'

SeniorKate commented 3 months ago

Same issue for 'create_epiwave_timeseries'

function (dates, jurisdictions, value) 
{
  timeseries <- epiwave::create_epiwave_timeseries(dates = infection_days, 
    jurisdictions = jurisdictions, value = list(value))
  class(timeseries) <- c("epiwave_massfun_timeseries", class(value), 
    class(timeseries))
  timeseries
}

Error: 'create_epiwave_timeseries' is not an exported object from 'namespace:epiwave'