Skip to content

Commit

Permalink
Fixed error caused by summary.sdreport not being exportet in recent v…
Browse files Browse the repository at this point in the history
…ersions of TMB
  • Loading branch information
calbertsen committed Sep 7, 2015
1 parent c3e70ca commit 01f0b25
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
@@ -1,7 +1,7 @@
Package: argosTrack
Type: Package
Title: Fit movement models to Argos data for marine animals
Version: 0.1.0
Version: 0.1.1
Date: 2015-08-17
Author: Christoffer Moesgaard Albertsen
Maintainer: Christoffer Moesgaard Albertsen <cmoe@aqua.dtu.dk>
Expand Down
4 changes: 4 additions & 0 deletions NEWS
@@ -1,3 +1,7 @@
# Version 0.1.1
- Fixed error caused by TMB no longer exporting summary.sdreport


# Version 0.1.0
- Added movement models: Random Walk (rw) and Multiple Persistence Continuous Time Correlated Random Walk (mpctcrw)
- New residual types (besided the old ”smooth”): Smooth predictions (”smoothpred”), Simulated residuals (”simulated”), and one step residuals (”onestep”)
Expand Down
2 changes: 1 addition & 1 deletion R/argostrack.R
Expand Up @@ -240,7 +240,7 @@ argosTrack <- function(lon,lat,dates,locationclass,

esttime <- system.time(opt <- nlminb(obj$par,obj$fn,obj$gr,control=nlminb.control))

srep <- TMB::summary.sdreport(TMB::sdreport(obj))
srep <- TMB:::summary.sdreport(TMB::sdreport(obj))
track <- srep[rownames(srep)=="mu",]
sdtrack <- matrix(track[,2],nrow=2)
esttrack <- matrix(track[,1],nrow=2)
Expand Down

0 comments on commit 01f0b25

Please sign in to comment.