[R-gregmisc-commits] r2057 - in pkg/gtools: R man

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Jul 14 23:19:03 CEST 2015


Author: warnes
Date: 2015-07-14 23:19:03 +0200 (Tue, 14 Jul 2015)
New Revision: 2057

Modified:
   pkg/gtools/R/loadedPackages.R
   pkg/gtools/man/loadedPackages.Rd
Log:
Modify loadedPackages() to return data silently so that the results don't get printed twice.

Modified: pkg/gtools/R/loadedPackages.R
===================================================================
--- pkg/gtools/R/loadedPackages.R	2015-07-03 02:51:47 UTC (rev 2056)
+++ pkg/gtools/R/loadedPackages.R	2015-07-14 21:19:03 UTC (rev 2057)
@@ -8,5 +8,5 @@
   retval$SearchPath <- na.replace(retval$SearchPath, '-')
   retval <- retval[order(inSearchPath),]
   if(!silent) print(retval)
-  retval
+  invisible(retval)
 }

Modified: pkg/gtools/man/loadedPackages.Rd
===================================================================
--- pkg/gtools/man/loadedPackages.Rd	2015-07-03 02:51:47 UTC (rev 2056)
+++ pkg/gtools/man/loadedPackages.Rd	2015-07-14 21:19:03 UTC (rev 2057)
@@ -13,7 +13,7 @@
   \item{silent}{Logical indicating whether the results should be printed}
 }
 \value{
-  Data frame containing one row per loaded package namespace, with columns:
+  Invisibly returns a data frame containing one row per loaded package namespace, with columns:
   \item{Package}{Package name}
   \item{Version}{Version string}
   \item{Path}{Path to package files}



More information about the R-gregmisc-commits mailing list