[Genabel-commits] r1777 - pkg/DatABEL/R
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Mon Jul 28 14:30:08 CEST 2014
Author: maksim
Date: 2014-07-28 14:30:08 +0200 (Mon, 28 Jul 2014)
New Revision: 1777
Modified:
pkg/DatABEL/R/checkPackageVersionOnCRAN.R
Log:
Prepare for submission to CRAN
Modified: pkg/DatABEL/R/checkPackageVersionOnCRAN.R
===================================================================
--- pkg/DatABEL/R/checkPackageVersionOnCRAN.R 2014-07-28 10:43:52 UTC (rev 1776)
+++ pkg/DatABEL/R/checkPackageVersionOnCRAN.R 2014-07-28 12:30:08 UTC (rev 1777)
@@ -26,8 +26,13 @@
checkPackageVersionOnCRAN <- function(packageName)
{
-CRAN_mirror_ref <- "http://cran.xl-mirror.nl/src/contrib" # Amsterdam mirror
+mirror_df <- getCRANmirrors(all = FALSE, local.only = FALSE)
+mirror <- mirror$URL[mirror$Country == "Netherlands" & mirror$City == "Amsterdam"]
+
+
+CRAN_mirror_ref <- paste(mirror, "/src/contrib", sep="")
+
all_cran_packs <- available.packages(contriburl=CRAN_mirror_ref)
all_cran_packs_df <- as.data.frame(all_cran_packs)
More information about the Genabel-commits
mailing list