From mtmorgan at fhcrc.org  Mon Mar 28 06:06:40 2011
From: mtmorgan at fhcrc.org (Martin Morgan)
Date: Sun, 27 Mar 2011 21:06:40 -0700
Subject: [Rd] R-2-13-alpha invalid subscript when checking for unstated
	dependencies
Message-ID: <4D900950.4040602@fhcrc.org>

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



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