Skip to content

Commit

Permalink
small error fixes to RMD and occDetFunc function
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanCarbone committed Jan 24, 2024
1 parent 5c9169a commit 6f8141d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions R/occDetFunc.r
Original file line number Diff line number Diff line change
Expand Up @@ -716,8 +716,9 @@ occDetFunc <- function (taxa_name, occDetdata, spp_vis, n_iterations = 5000, nyr

# get the sessionInfo and coerce into a useable format
session.info <- sessionInfo()
packages <- c(sapply(session.info[7][[1]], function(x) x$Version),
sapply(session.info[8][[1]], function(x) x$Version))

packages <- c(sapply(session.info$otherPkgs, function(x) x$Version),
sapply(session.info$loadedOnly, function(x) x$Version))

MD <- list(method = 'sparta::occDetFunc',
call = call <- match.call(),
Expand Down
2 changes: 1 addition & 1 deletion pre_vignette/sparta_vignette.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ str(myData)
system.time({
occ_out <- occDetModel(taxa = myData$taxa,
site = myData$site,
time_period = myData$time_period,
survey = ymd(myData$time_period),
species_list = c('a','b','c','d'),
write_results = FALSE,
n_iterations = 200,
Expand Down

0 comments on commit 6f8141d

Please sign in to comment.