Skip to content

Commit

Permalink
Error fix in .onAttach hook
Browse files Browse the repository at this point in the history
  • Loading branch information
jbedia committed May 11, 2017
1 parent 29bab92 commit b9d9af0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Suggests:
visualizeR
Type: Package
Title: Climate data manipulation and transformation
Version: 0.0.11
Version: 0.0.12
Date: 2017-05-11
Authors@R: as.person(c(
"Santander Meteorology Group <http://meteo.unican.es> [ctb]",
Expand Down
7 changes: 3 additions & 4 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
transformeR 0.0.11
transformeR 0.0.12
=================

* New `map.stippling utility for adding customized point layers to climatological maps
* New `set.min` and `set.max` options in `plotClimatology` for forcing extremes to predefined map range values
* Other minor changes and documentation updates
* Error fix in `.onAttach` preventing package update (undetected by R CMD check)




8 changes: 5 additions & 3 deletions R/rhooks.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@
ver.mess1 <- paste0("WARNING: Your current version of ", pkgname, " (v", ver, ") is not up-to-date")
ver.mess <- paste0("Get the latest stable version (", latest.ver,
") using <devtools::install_github('SantanderMetGroup/", pkgname, "')>")
packageStartupMessage(ver.mess1)
packageStartupMessage(ver.mess)
} else if (ver > latest.ver) {
ver.mess1 <- paste0("WARNING: Your current version of ", pkgname, " (v", ver,
") is ahead of the master branch version (latest.ver)")
") is ahead of the master branch version (", latest.ver, ")")
ver.mess <- paste0("Development version may have an unexpected behaviour")
packageStartupMessage(ver.mess1)
packageStartupMessage(ver.mess)
}
packageStartupMessage(ver.mess1)
packageStartupMessage(ver.mess)
}
}
# End
Expand Down

0 comments on commit b9d9af0

Please sign in to comment.