[Xts-commits] r878 - in pkg: xtime/R xtsExtra/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon May 1 15:16:38 CEST 2017


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, ".")
 }



More information about the Xts-commits mailing list