Skip to content

Instantly share code, notes, and snippets.

@klmr
Created April 7, 2014 12:44
Show Gist options
  • Save klmr/10019620 to your computer and use it in GitHub Desktop.
Save klmr/10019620 to your computer and use it in GitHub Desktop.
Reproducible name clash with R packages
# Reproduce a name clash with packages
# R 3.0.2
library(DESeq) # 1.14.0
x = do.call(rbind, rep(list(read.table(text='1 2\n3 4')), 10))
m = c('V1', 'V2')
cds = estimateSizeFactors(newCountDataSet(x, m))
cds1 = estimateDispersions(cds, method='blind', fitType='local')
lp = function () 42
cds2 = estimateDispersions(cds, method='blind', fitType='local')
# Error in lp(c(…, :
# unused argument (c(…))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment