[Genabel-commits] r1786 - pkg/DatABEL/R
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Fri Aug 8 06:14:55 CEST 2014
Author: maksim
Date: 2014-08-08 06:14:55 +0200 (Fri, 08 Aug 2014)
New Revision: 1786
Modified:
pkg/DatABEL/R/zzz.R
Log:
Sometimes R can not connect CRAN site (firewall blocks connection or other shit) to check package version. This commit fixes the bug when pack version is zero and CMD INSTALL fails to instal the pack.
Modified: pkg/DatABEL/R/zzz.R
===================================================================
--- pkg/DatABEL/R/zzz.R 2014-08-04 22:14:56 UTC (rev 1785)
+++ pkg/DatABEL/R/zzz.R 2014-08-08 04:14:55 UTC (rev 1786)
@@ -6,7 +6,7 @@
## check if CRAN version is the same as loaded
cranVersion <- try( checkPackageVersionOnCRAN(pkg) )
- if (!is.null(cranVersion) & !( class(cranVersion) == "try-error") )
+ if (!is.null(cranVersion) & !( class(cranVersion) == "try-error") & length(cranVersion) != 0)
if (pkgVersion != cranVersion) {
welcomeMessage <- paste(welcomeMessage,
"\nInstalled ",pkg," version (",
More information about the Genabel-commits
mailing list