It's happened again: exactRankTests_0.4-2.tar.gz has Depends: R > 1.3.0 which is not only impossible, but breaks update.packages. How can we test for this? Unfortunately once such a package is installed, it has to be manually uninstalled before update.packages will work again. *PLEASE* can people read the manual to get the syntax right: it is Depends: R (>= 1.3.0) but such packages should not be in the main part of CRAN yet. -- Brian D. Ripley, ripley@stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>>>>> ripley writes:> It's happened again: > exactRankTests_0.4-2.tar.gz has> Depends: R > 1.3.0> which is not only impossible, but breaks update.packages.> How can we test for this?Damn it. I thought that my Perl code in R CMD check if($description->{"Depends"} =~ /\bR *\([^)]*\)/) { ## The `Depends' field is not required, and currently only R ## version dependencies are used, which must be of the form ## `R ($op $version)' with `$op' one of `<=' or `>='. $log->checking("DESCRIPTION Depends field"); $description->{"Depends"} =~ /\bR *\(([^) ]+) *([^) ]+)\)/; if((($1 eq "<=") || ($1 eq ">=")) && $2) { $log->result("OK"); } else { $log->warning(); $log->message(" malformed Depends field"); } } was good enough. It is intended to check for just that: even more precisely for exactly what is used by R lateron. For the offending package I get no warning. Argh.> Unfortunately once such a package is installed, it has to be manually > uninstalled before update.packages will work again.> *PLEASE* can people read the manual to get the syntax right: it is> Depends: R (>= 1.3.0)> but such packages should not be in the main part of CRAN yet.How can this be installed? I though if you ran R CMD INSTALL then it would figure this out. At least, this is what depends=`get_dcf_field Depends DESCRIPTION` depends=`echo ${depends} | grep 'R *('` if test "${depends}"; then depends=`echo ${depends} | sed 's/.*R *(\([^)]*\)).*/\1/;s/=/= /'` dep_operator=`set - ${depends}; echo ${1}` dep_version=`set - ${depends}; echo ${2}` ## Currently, only operators `<=' and `>=' are supported. Hence we ## check this, and also whether we found a version string. if (test "${dep_operator}" = "<=" \ || test "${dep_operator}" = ">=") \ && test -n "${dep_version}"; then dep_ok=`expr ${R_VERSION} ${dep_operator} ${dep_version} ` if test ${dep_ok} -eq 0; then echo "ERROR: This R is version ${R_VERSION}" echo " package \`${pkg}' depends on R ${dep_version}" exit 1; fi else echo "WARNING: malformed \`Depends' field in \`DESCRIPTION'" fi fi in INSTALL is supposed to do. Same problem, most likely. Will have a look later. -k -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> It's happened again: > > exactRankTests_0.4-2.tar.gz has > > Depends: R > 1.3.0 > > which is not only impossible, but breaks update.packages.I'm sorry! exactRankTests_0.4-4.tar.gz is now in incoming and Depends: R (>= 1.2.3) Torsten> > How can we test for this? > > Unfortunately once such a package is installed, it has to be manually > uninstalled before update.packages will work again. > > *PLEASE* can people read the manual to get the syntax right: it is > > Depends: R (>= 1.3.0) > > but such packages should not be in the main part of CRAN yet. > > -- > Brian D. Ripley, ripley@stats.ox.ac.uk > Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ > University of Oxford, Tel: +44 1865 272861 (self) > 1 South Parks Road, +44 1865 272860 (secr) > Oxford OX1 3TG, UK Fax: +44 1865 272595 > > > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- > r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html > Send "info", "help", or "[un]subscribe" > (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ >-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
To my inverted way of thinking there is something wrong with the general logic of what is being attempted here. I think people should be encouraged to upgrade to the most recent released version of R. At best I test my packages with the last two releases of R, so it is only by accident that the "Depends" line on my packages may not specify the most recent release. On the other hand, an unmaintained package could quickly depend on an older version of R. I don't see any way a package maintainer can specify this, but there could be some mechanism (possible tied to passing R CMD check) that specifies dependency on an older version of R. Perhaps this might also be formally recognized as a mechanism for moving things out of the contrib section of CRAN. If this is to be written into a file in the package it would require modifying the contents of the tar ball, but if it could be coded into a prefix on the package name it might be simpler? Paul Gilbert -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._