[Rd] R-2-13-alpha invalid subscript when checking for unstated dependencies

Martin Morgan mtmorgan at fhcrc.org
Mon Mar 28 06:06:40 CEST 2011


R version 2.13.0 alpha (2011-03-27 r55091)

This error occurs when R CMD check'ing a Bioconductor package:

* checking for unstated dependencies in R code ... WARNING
Error in e[keep] : invalid subscript type 'list'
Execution halted
See the information on DESCRIPTION files in the chapter 'Creating R
packages' of the 'Writing R Extensions' manual.

It is because the author has a sub-expression to 'require' that exceeds 
the width.cutoff=60L default argument of deparse, e.g.,

require(gsub("onereallyquitelongstring",
              "anotherreallyquitelongstring",
               variablename),
         character.only=TRUE)

This results in a list rather than vector in (one of) tools::QC.R:4106 
or 4258.
-- 
Computational Biology
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N. PO Box 19024 Seattle, WA 98109

Location: M1-B861
Telephone: 206 667-2793



More information about the R-devel mailing list