Hi
I'm missing something here but I cannot figure out what. What I can see is that the same code works when I load it via source(...) yet fails when I execute it after loading the package I have built (which includes the code.
Below is a transcript of my R session. First I load the code from a file, using source(). Then I execute it fine. Then I remove the function object, I load the package, and execute the same code from the package - and I get an error.
Please help!
Mick
bam <- read.bam("../../example/SRR389185_vs_SINV_sorted.bam", chr="SINV")
# works! remove the function
rm(read.bam)
# load the package
library(viRome)
Loading required package: seqinr
Attaching package: ?seqinr?
The following object(s) are masked from ?package:Biostrings?:
translate
Loading required package: plyr
Attaching package: ?plyr?
The following object(s) are masked from ?package:seqinr?:
count
The following object(s) are masked from ?package:IRanges?:
compact, desc, rename
Loading required package: gsubfn
Loading required package: proto
Loading required namespace: tcltk
Loading Tcl/Tk interface ... done
Loading required package: seqLogo
Loading required package: grid