Access source code of internal function within R
1
0
Entering edit mode
heyi xiao ▴ 360
@heyi-xiao-3308
Last seen 7.6 years ago
United States
I checked source code for summarizeOverlaps method in Rsamtools package and found that it calls some internal function .processBamFiles. And I want to check the details of this internal function, and I tried various methods which usually work for me, but no luck this time. > library(Rsamtools) .. > Rsamtools:::.processBamFile Error in get(name, envir = asNamespace(pkg), inherits = FALSE) : object '.processBamFile' not found > getAnywhere(".processBamFile") no object named '.processBamFile' was found In the end, I downloaded the Rsamtools source package and located the source code chunk for function .processBamFiles. But this is kind of awkward. Anyone knows why ?:::? and getAnywhere don?t work, and are there better ways to access the source code of internal function within R? Thanks! Heyi
Rsamtools Rsamtools • 1.8k views
ADD COMMENT
0
Entering edit mode
Dan Tenenbaum ★ 8.2k
@dan-tenenbaum-4256
Last seen 3.2 years ago
United States
On Tue, Jul 23, 2013 at 10:02 AM, heyi xiao <xiaoheyiyh at="" yahoo.com=""> wrote: > I checked source code for summarizeOverlaps method in Rsamtools package and found that it calls some internal function .processBamFiles. And I want to check the details of this internal function, and I tried various methods which usually work for me, but no luck this time. > >> library(Rsamtools) > .. >> Rsamtools:::.processBamFile You forgot the 's' at the end. Dan > Error in get(name, envir = asNamespace(pkg), inherits = FALSE) : > object '.processBamFile' not found >> getAnywhere(".processBamFile") > no object named '.processBamFile' was found > > In the end, I downloaded the Rsamtools source package and located the source code chunk for function .processBamFiles. But this is kind of awkward. Anyone knows why ?:::? and getAnywhere don?t work, and are there better ways to access the source code of internal function within R? Thanks! > Heyi > > _______________________________________________ > Bioconductor mailing list > Bioconductor at r-project.org > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor
ADD COMMENT

Login before adding your answer.

Traffic: 619 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6