Skip to content

Commit

Permalink
fix session.info version error
Browse files Browse the repository at this point in the history
Fixes #258
  • Loading branch information
03rcooke authored Mar 21, 2024
1 parent 2973f6d commit 0396a45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/occDetFunc.r
Original file line number Diff line number Diff line change
Expand Up @@ -716,8 +716,8 @@ 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 Expand Up @@ -791,4 +791,4 @@ occDetFunc <- function (taxa_name, occDetdata, spp_vis, n_iterations = 5000, nyr
if(write_results) save(out, file = file.path(output_dir, paste(taxa_name, ".rdata", sep = "")))
return(out)
}


0 comments on commit 0396a45

Please sign in to comment.