Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/gabferreira/phylogrid
Browse files Browse the repository at this point in the history
  • Loading branch information
gabferreira committed Nov 4, 2023
2 parents cf51120 + ef716b0 commit 12008dd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion R/arg.check.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
#' @export
arg.check <- function(call,
arguments = c("LR", "inv.R", "branch.length", "n.descen", "tree") ){
fun <- match.fun(as.list(call)[[1]])
# get function
fun <- get(sub("phyloraster::|phyloraster::", "", as.character(as.list(call)[[1]]))[1],
mode = "function", envir = loadNamespace("phyloraster"))
defined <- methods::formalArgs(args(fun))
passed <- names(as.list(call)[-1])

Expand Down
2 changes: 1 addition & 1 deletion R/shp2rast.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ shp2rast <- function(x, y = NULL, sps.col, ymask = FALSE, background = NA,
x <- terra::vect(x)
}

nm <- unique(data.frame(x)[,sps.col])
nm <- unique(data.frame(x)[,sps.col]) # get the species names from shapefile x

ynull <- is.null(y) # y is null?

Expand Down
2 changes: 1 addition & 1 deletion man/shp2rast.Rd

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

0 comments on commit 12008dd

Please sign in to comment.