NEWS | R Documentation |
Backwards incompatible changes to the API partly due to generalization allowing for loss of immunity:
sir
expects constants = c(S0, I0, R0, gamma, delta)
,
no longer constants = c(gamma, S0, I0, R0)
.
fastbeta
and fastbeta.bootstrap
expect constants = c(S0, I0, R0, gamma, delta)
,
no longer constants = c(gamma, S0, I0)
.
fastbeta
returns (modulo attributes)
cbind(S, I, R, beta)
, no longer cbind(beta, S, I)
.
ptpi
gains argument constants
and loses
argument start
.
It expects constants = c(Sa, Ia, Ra, gamma, delta)
,
no longer start = Sa
.
ptpi(...)[[1L]]
gives the state at time 0
or at time a
conditional on new argument backcalc
.
The default is a
, no longer (implicitly) 0
.
ptpi(...)[[4L]]
has dimensions
c(b-a+1, 3, iter)
, no longer c(b-a+1, iter)
.
‘data/*.R’ are no longer copied into ‘inst/scripts’
at install time by a make
rule in ‘src/Makevars’.
There is no need: the scripts are preserved due to the setting of
BuildResaveData: no
. Hence ‘src/Makevars’ is removed.
Simulation sir.e01
is generated by the same parameters
but is no longer stochastic. Simulation sir.e02
gives the
stochastic variant.
Changes are logged in ‘inst/NEWS.Rd’.
Depends: R (>= 4.3.0)
for amsmath
in PDF
output, which was not supported until 4.2.2.
‘DESCRIPTION’ sets BuildResaveData: no
,
so that R CMD build
works without
--no-resave-data when fastbeta is not installed.
‘data/*.R’ are copied into ‘inst/scripts’
at install time by a make
rule in ‘src/Makevars’.
Typo in ‘src/sir.c’ triggering -Wformat is fixed.