From noreply at r-forge.r-project.org Mon May 1 15:14:53 2017 From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org) Date: Mon, 1 May 2017 15:14:53 +0200 (CEST) Subject: [Xts-commits] r877 - pkg/xts/R Message-ID: <20170501131453.4B1EC188E46@r-forge.r-project.org> Author: bodanker Date: 2017-05-01 15:14:52 +0200 (Mon, 01 May 2017) New Revision: 877 Modified: pkg/xts/R/zzz.R Log: Add warning that repo has moved to .onAttach() Modified: pkg/xts/R/zzz.R =================================================================== --- pkg/xts/R/zzz.R 2015-02-19 00:08:30 UTC (rev 876) +++ pkg/xts/R/zzz.R 2017-05-01 13:14:52 UTC (rev 877) @@ -21,3 +21,11 @@ .POSIXct <- function(xx, tz = NULL) structure(xx, class = c("POSIXt", "POSIXct"), tzone = tz) } + +.onAttach <- function(libname, pkgname) { + repo <- "https://github.com/joshuaulrich/xts" + packageStartupMessage( + "WARNING: this package was installed from R-Forge, but development has\n", + "moved to GitHub. Please re-install the package using the GitHub repo at:\n", + repo, ".") +} From noreply at r-forge.r-project.org Mon May 1 15:16:38 2017 From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org) Date: Mon, 1 May 2017 15:16:38 +0200 (CEST) Subject: [Xts-commits] r878 - in pkg: xtime/R xtsExtra/R Message-ID: <20170501131638.D5C79188E5A@r-forge.r-project.org> Author: bodanker Date: 2017-05-01 15:16:38 +0200 (Mon, 01 May 2017) New Revision: 878 Modified: pkg/xtime/R/zzz.R pkg/xtsExtra/R/zzz.R Log: Add warning that repo has moved to .onAttach() Modified: pkg/xtime/R/zzz.R =================================================================== --- pkg/xtime/R/zzz.R 2017-05-01 13:14:52 UTC (rev 877) +++ pkg/xtime/R/zzz.R 2017-05-01 13:16:38 UTC (rev 878) @@ -3,3 +3,10 @@ structure(xx, class = c("POSIXt", "POSIXct"), tzone = tz) } +.onAttach <- function(libname, pkgname) { + repo <- "https://github.com/joshuaulrich/xtime" + packageStartupMessage( + "WARNING: this package was installed from R-Forge, but development has\n", + "moved to GitHub. Please re-install the package using the GitHub repo at:\n", + repo, ".") +} Modified: pkg/xtsExtra/R/zzz.R =================================================================== --- pkg/xtsExtra/R/zzz.R 2017-05-01 13:14:52 UTC (rev 877) +++ pkg/xtsExtra/R/zzz.R 2017-05-01 13:16:38 UTC (rev 878) @@ -1,4 +1,10 @@ .onAttach <- function(...){ # Suggests quantmod to user of OHLC plot.xts assign(".QUANTMOD_MESSAGE", TRUE, .GlobalEnv) + + repo <- "https://github.com/joshuaulrich/xtsExtra" + packageStartupMessage( + "WARNING: this package was installed from R-Forge, but development has\n", + "moved to GitHub. Please re-install the package using the GitHub repo at:\n", + repo, ".") }