Skip to content

Commit

Permalink
update for R 4.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
kingaa committed Mar 27, 2024
1 parent 88c5a2a commit 59c16b7
Show file tree
Hide file tree
Showing 91 changed files with 212 additions and 614 deletions.
2 changes: 1 addition & 1 deletion R/objfun.R
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ setIs(
as(from@env$object,"pomp")
},
replace= function (from, to, value) {
pStop(who=-2L,"cannot replace the pomp object in a stateful objective function.")
pStop(who=-4L,"cannot replace the pomp object in a stateful objective function.")
}
)

Expand Down
410 changes: 0 additions & 410 deletions inst/doc/index.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions tests/R_v_C.Rout
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down Expand Up @@ -109,16 +109,16 @@ Type 'q()' to quit R.
> ## ----comparison----------------------------------------------------------
> system.time(simulate(gompertz,nsim=10000,format="arrays"))
user system elapsed
7.361 0.042 7.403
6.806 0.114 6.921
> system.time(simulate(Gompertz,nsim=10000,format="arrays"))
user system elapsed
0.160 0.004 0.165
0.161 0.001 0.162
> system.time(pfilter(gompertz,Np=1000))
user system elapsed
0.660 0.012 0.671
0.642 0.013 0.655
> system.time(pfilter(Gompertz,Np=1000))
user system elapsed
0.029 0.000 0.029
0.029 0.001 0.029
>
> dev.off()
null device
Expand Down
4 changes: 2 additions & 2 deletions tests/abc.Rout.save
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down
4 changes: 2 additions & 2 deletions tests/baddm.Rout.save
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down
4 changes: 2 additions & 2 deletions tests/bake.Rout.save
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down
4 changes: 2 additions & 2 deletions tests/basic_probes.Rout.save
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down
4 changes: 2 additions & 2 deletions tests/betabinom.Rout.save
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down
4 changes: 2 additions & 2 deletions tests/blowflies.Rout.save
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down
4 changes: 2 additions & 2 deletions tests/bsmc2.Rout.save
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down
4 changes: 2 additions & 2 deletions tests/bsplines1.Rout.save
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down
4 changes: 2 additions & 2 deletions tests/bsplines2.Rout.save
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down
4 changes: 2 additions & 2 deletions tests/concat.Rout.save
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down
4 changes: 2 additions & 2 deletions tests/covmat.Rout.save
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down
4 changes: 2 additions & 2 deletions tests/csnippet.Rout.save
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down
4 changes: 2 additions & 2 deletions tests/dacca.Rout.save
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down
4 changes: 2 additions & 2 deletions tests/defunct.Rout.save
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down
4 changes: 2 additions & 2 deletions tests/dinit.Rout.save
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down
Binary file modified tests/dp-01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/dp-02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/dp-03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions tests/dp.Rout.save
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down
4 changes: 2 additions & 2 deletions tests/dprocess.Rout.save
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down
4 changes: 2 additions & 2 deletions tests/ebola.Rout.save
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down
4 changes: 2 additions & 2 deletions tests/emeasure.Rout.save
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down
4 changes: 2 additions & 2 deletions tests/eulermultinom.Rout.save
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down
4 changes: 2 additions & 2 deletions tests/flow.Rout.save
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down
6 changes: 5 additions & 1 deletion tests/gillespie.R
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,11 @@ bind_rows(
ggplot(aes(x=time,y=value,color=model))+
labs(color="",y="reports",title="comparison of implementations")+
geom_line()+
theme_bw()+theme(legend.position=c(0.2,0.8))
theme_bw()+
theme(
legend.position="inside",
legend.position.inside=c(0.2,0.8)
)

try(gillespie(rate.fun=rate.fun,v=as.numeric(Vmatrix)))
w <- Vmatrix
Expand Down
10 changes: 7 additions & 3 deletions tests/gillespie.Rout.save
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down Expand Up @@ -153,7 +153,11 @@ NOTE: The provided object 'nbasis' is available for use by POMP basic components
+ ggplot(aes(x=time,y=value,color=model))+
+ labs(color="",y="reports",title="comparison of implementations")+
+ geom_line()+
+ theme_bw()+theme(legend.position=c(0.2,0.8))
+ theme_bw()+
+ theme(
+ legend.position="inside",
+ legend.position.inside=c(0.2,0.8)
+ )
>
> try(gillespie(rate.fun=rate.fun,v=as.numeric(Vmatrix)))
Error : in 'gillespie': 'v' must be a matrix.
Expand Down
4 changes: 2 additions & 2 deletions tests/gompertz.Rout.save
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down
4 changes: 2 additions & 2 deletions tests/helpers.Rout.save
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down
4 changes: 2 additions & 2 deletions tests/hitch.Rout.save
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down
4 changes: 2 additions & 2 deletions tests/issue109.Rout.save
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down
4 changes: 2 additions & 2 deletions tests/issue56.Rout.save
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down
4 changes: 2 additions & 2 deletions tests/kalman.Rout.save
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down
4 changes: 2 additions & 2 deletions tests/kalman2.Rout.save
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down
4 changes: 2 additions & 2 deletions tests/link.Rout.save
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down
4 changes: 2 additions & 2 deletions tests/load.Rout.save
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down
4 changes: 2 additions & 2 deletions tests/logmeanexp.Rout.save
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down
4 changes: 2 additions & 2 deletions tests/lookup.Rout.save
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down
4 changes: 2 additions & 2 deletions tests/map.Rout.save
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down
4 changes: 2 additions & 2 deletions tests/mcap.Rout.save
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down
4 changes: 2 additions & 2 deletions tests/measure.Rout.save
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down
4 changes: 2 additions & 2 deletions tests/mif2.Rout.save
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

R version 4.3.2 (2023-10-31) -- "Eye Holes"
Copyright (C) 2023 The R Foundation for Statistical Computing
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
Expand Down
Loading

0 comments on commit 59c16b7

Please sign in to comment.