Skip to content

Commit

Permalink
Set default smats for nblast() as characters, not objects
Browse files Browse the repository at this point in the history
This removes a complaint about there being no visible binding for the smats during R CMD check on CRAN (hopefully...)
  • Loading branch information
jdmanton committed Sep 19, 2014
1 parent ad308a0 commit d7b91a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/neuriteblast.r
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ nblast <- function(query, target=getOption("nat.default.neuronlist"),
if(is.null(smat)) {
smat=getOption("nat.nblast.defaultsmat")
if(is.null(smat)) {
if(UseAlpha) smat=smat_alpha.fcwb
else smat=smat.fcwb
if(UseAlpha) smat="smat_alpha.fcwb"
else smat="smat.fcwb"
}
}
if(is.character(smat)) smat=get(smat)
Expand Down

0 comments on commit d7b91a2

Please sign in to comment.