diff --git a/.Rbuildignore b/.Rbuildignore index 3572bd8..21d74c4 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -14,7 +14,8 @@ ^vignettes/manipulation\.Rmd$ ^vignettes/operations\.Rmd$ ^vignettes/leaf_area\.Rmd$ - +^vignettes/segmentation\.Rmd$ ^CODE_OF_CONDUCT\.md$ ^\.github$ ^cran-comments\.md$ +^CRAN-RELEASE$ diff --git a/R/utils_file.R b/R/utils_file.R index 000afa3..94cfe89 100644 --- a/R/utils_file.R +++ b/R/utils_file.R @@ -61,7 +61,7 @@ file_dir <- function(file){ file) fd <- ifelse(nchar(ex) == 0, paste0("."), - paste0("./", ex)) + ifelse(grepl("^[/]", file), ex, paste0("./", ex))) fd <- ifelse(grepl(":", fd, fixed = TRUE), substring(fd, 3, nchar(fd)), fd) diff --git a/R/zzz.R b/R/zzz.R index 493e5bb..541fb55 100644 --- a/R/zzz.R +++ b/R/zzz.R @@ -1,9 +1,11 @@ .onAttach <- function(libname, pkgname) { - vers <- "0.0.0.9000" - packageStartupMessage("|===========================================|") - packageStartupMessage("| Tools for Plant Image Analysis (pliman) |") - packageStartupMessage("| Author: Tiago Olivoto |") - packageStartupMessage("|===========================================|") + vers <- "v0.1.0" + packageStartupMessage("|========================================================|") + packageStartupMessage("| Tools for Plant Image Analysis (pliman) ", vers, " |") + packageStartupMessage("| Author: Tiago Olivoto |") + packageStartupMessage("| Type 'vignette('pliman_start')' for a short tutorial |") + packageStartupMessage("| Visit 'https://bit.ly/2RP2kyE' for a complete tutorial |") + packageStartupMessage("|========================================================|") } if (getRversion() >= "2.15.1") {