example(qsame) assumes exists() is vectorized, but it isn't
BillDunlap opened this issue · 1 comments
BillDunlap commented
qs/man/qread.Rd contains several calls to exists() with more than one name given as the 'x' argument:
% grep exists *
qreadm.Rd:exists(c('x1', 'x2')) # returns true
qreadm.Rd:exists(c('x1', 'x2')) # returns true
qsavem.Rd:exists(c('x1', 'x2')) # returns true
qsavem.Rd:exists(c('x1', 'x2')) # returns true
exists(c("x1","x2")) ignores the "x2" and returns the same thing as exists("x1"), without a warning. Those calls should be replaced by
exists('x1') && exists('x2')