[Returnanalytics-commits] r4028 - in pkg: FactorAnalytics/R PerformanceAnalytics/R PortfolioAnalytics/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon May 1 15:42:36 CEST 2017


Author: bodanker
Date: 2017-05-01 15:42:35 +0200 (Mon, 01 May 2017)
New Revision: 4028

Modified:
   pkg/FactorAnalytics/R/zzz.R
   pkg/PerformanceAnalytics/R/zzz.R
   pkg/PortfolioAnalytics/R/zzz.R
Log:
Add warning that repo has moved to .onAttach()

Modified: pkg/FactorAnalytics/R/zzz.R
===================================================================
--- pkg/FactorAnalytics/R/zzz.R	2016-08-06 18:03:52 UTC (rev 4027)
+++ pkg/FactorAnalytics/R/zzz.R	2017-05-01 13:42:35 UTC (rev 4028)
@@ -1,3 +1,11 @@
+.onAttach <- function(libname, pkgname) {
+  repo <- "https://github.com/braverock/factorAnalytics"
+  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, ".")
+}
+
 #' @import xts
 #' @import zoo
 #' @import foreach

Modified: pkg/PerformanceAnalytics/R/zzz.R
===================================================================
--- pkg/PerformanceAnalytics/R/zzz.R	2016-08-06 18:03:52 UTC (rev 4027)
+++ pkg/PerformanceAnalytics/R/zzz.R	2017-05-01 13:42:35 UTC (rev 4028)
@@ -13,6 +13,14 @@
     }
 }
 
+.onAttach <- function(libname, pkgname) {
+  repo <- "https://github.com/braverock/PerformanceAnalytics"
+  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, ".")
+}
+
 even <- function (x) x%%2==0
 
 odd  <- function (x) x%%2==1

Modified: pkg/PortfolioAnalytics/R/zzz.R
===================================================================
--- pkg/PortfolioAnalytics/R/zzz.R	2016-08-06 18:03:52 UTC (rev 4027)
+++ pkg/PortfolioAnalytics/R/zzz.R	2017-05-01 13:42:35 UTC (rev 4028)
@@ -1,3 +1,11 @@
+.onAttach <- function(libname, pkgname) {
+  repo <- "https://github.com/braverock/PortfolioAnalytics"
+  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, ".")
+}
+
 #' @import xts
 #' @import zoo
 #' @import PerformanceAnalytics



More information about the Returnanalytics-commits mailing list