Skip to content
Prev 8414 / 21307 Next

[Bioc-devel] Error in NSBS

Hi Krithika,

NSBS() is the internal helper defined in the S4Vectors package that
takes care of checking and normalizing the supplied subscript when
one tries to subset a Vector derivative (e.g. an Rle, Hits, IRanges,
GRanges, GRangesList, etc...). For example:

 > IRanges(1:26, 50, names=letters)[LETTERS]
Error in NSBS(i, x, exact = exact, upperBoundIsStrict = !allow.append) :
   subscript contains invalid names

It's just saying that the subscript 'i' contains names that are not
valid.

So it seems that in your case a subsetting operation that happens
in run.cin.chr() works just fine when you run run.cin.chr()
interactively but not in the context of knitPDF.

It's hard to know why without having more details.

Could you please run R CMD Stangle on your Rmarkdown file? That will
produce a .R file. Then start R and source this .R file with
source("file_produced_by_R_CMD_Stangle.R" , echo=TRUE).
Then please report the full output you get as well as the output of
sessionInfo() (call this after the source() command terminates).
Please use sessionInfo(), not session_info().

Thanks,
H.
On 12/10/2015 09:27 PM, Krithika Bhuvaneshwar [kb472 at georgetown.edu] wrote: