Skip to content

Commit

Permalink
Update for TMB (#20)
Browse files Browse the repository at this point in the history
* Fix #19

* further fix

* small update

* Update as_fitted_DAG.Rd
  • Loading branch information
James-Thorson-NOAA authored Apr 15, 2024
1 parent 84cedad commit bb1bd53
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 160 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: dsem
Type: Package
Title: Fit Dynamic Structural Equation Models
Version: 1.2.0
Date: 2024-03-29
Version: 1.2.1
Date: 2024-04-02
Authors@R:
c(person(given = "James",
family = "Thorson",
Expand Down
2 changes: 0 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ S3method(vcov,dsem)
export(TMBAIC)
export(as_fitted_DAG)
export(as_sem)
export(checkDepPackageVersion)
export(classify_variables)
export(dsem)
export(dsem_control)
Expand Down Expand Up @@ -42,5 +41,4 @@ importFrom(stats,sd)
importFrom(stats,simulate)
importFrom(stats,time)
importFrom(stats,vcov)
importFrom(utils,packageVersion)
useDynLib(dsem, .registration = TRUE)
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# dsem 1.2.1

* removing `checkDepPackageVersion(dep_pkg="Matrix", this_pkg="TMB")` from `.onLoad()`
as requested by K. Kristensen

# dsem 1.2.0

* Adding option to specify covariance via argument `covs`
Expand Down
3 changes: 2 additions & 1 deletion R/dsem.R
Original file line number Diff line number Diff line change
Expand Up @@ -873,9 +873,10 @@ logLik.dsem <- function(object, ...) {
as_fitted_DAG <-
function( fit,
lag = 0,
what = "Estimate",
what = c("Estimate","Std_Error","p_value"),
direction = 1 ){

what = match.arg(what)
coefs = summary( fit )
coefs = coefs[ which(coefs[,2]==lag), ]
coefs = coefs[ which(coefs[,'direction'] %in% direction), ]
Expand Down
81 changes: 0 additions & 81 deletions R/utils.R

This file was deleted.

2 changes: 1 addition & 1 deletion R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# See: https://mail.google.com/mail/u/0/#inbox/QgrcJHsNjpqZNGJhNMVHcfGFDLLMfrvqqHl
.onLoad <- function(libname, pkgname) {
#checkDepPackageVersion(dep_pkg="TMB", this_pkg="dsem")
checkDepPackageVersion(dep_pkg="Matrix", this_pkg="TMB")
#checkDepPackageVersion(dep_pkg="Matrix", this_pkg="TMB")
}

.onUnload <- function(libpath) {
Expand Down
7 changes: 6 additions & 1 deletion man/as_fitted_DAG.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 0 additions & 28 deletions man/checkDepPackageVersion.Rd

This file was deleted.

44 changes: 0 additions & 44 deletions man/reinstalling.Rd

This file was deleted.

0 comments on commit bb1bd53

Please sign in to comment.