Skip to content

Commit

Permalink
added all the data and passes R CMD check
Browse files Browse the repository at this point in the history
  • Loading branch information
muschellij2 committed Feb 19, 2018
1 parent 61cfe43 commit 02152a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Description: SRI24 is an 'MRI'-based atlas of normal adult human brain anatomy,
Authors@R: c(person(given = "John", family = "Muschelli",
role = c("aut", "cre"), email = "muschellij2@gmail.com",
comment = NULL))
License: CC-BY-SA + file LICENSE
License: CC BY-SA + file LICENSE
Suggests:
knitr,
rmarkdown,
Expand Down
6 changes: 4 additions & 2 deletions R/sri24_image_df.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ sri24_image_df = function() {
"spgr", "suptent", "tissues", "tzo116plus")
imgs = paste0(stubs, ".nii.gz")
names(imgs) = stubs
imgs = sapply(imgs, system.file, package = "sri24")
imgs = imgs[ imgs != ""]
imgs = sapply(imgs, function(x) {
system.file("extdata", x, package = "sri24")
})
imgs = imgs[ imgs != "" ]
if (length(imgs) == 0) {
return(NULL)
}
Expand Down

0 comments on commit 02152a5

Please sign in to comment.