Skip to content

Commit

Permalink
Moved the silly hack to IRanges.
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Oct 12, 2011
1 parent 83d0c1e commit 315c33a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 34 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Description: The ability to efficiently store genomic annotations and
defines general purpose containers for storing genomic intervals
as well as more specialized containers for storing alignments
against a reference genome.
Version: 1.5.50
Version: 1.5.51
Author: P. Aboyoun, H. Pages and M. Lawrence
Maintainer: Biocore Team c/o BioC user list <[email protected]>
biocViews: Genetics, Sequencing, HighThroughputSequencing, Annotation
Expand Down
35 changes: 2 additions & 33 deletions R/zzz.R
Original file line number Diff line number Diff line change
@@ -1,37 +1,6 @@
###

.onLoad <- function(libname, pkgname)
.onUnload <- function(libpath)
{
## Putting library(methods) below produces the following 'R CMD check'
## NOTE:
##
## * checking R code for possible problems ... NOTE
## File ‘GenomicRanges/R/zzz.R’:
## .onLoad calls:
## library(methods)
##
## Package startup functions should not change the search path.
## See section ‘Good practice’ in ?.onAttach.
##
## On the other hand, NOT loading the methods package will cause the
## following WARNING when running 'R CMD check' on a BSgenome data package:
##
## * checking whether the namespace can be loaded with stated dependencies ... WARNING
## Error: .onLoad failed in loadNamespace() for ‘BSgenome.Scerevisiae.UCSC.sacCer3’, details:
## call: length(x)
## error: could not find function "loadMethod"
## Execution halted
##
## A namespace must be able to be loaded with just the base namespace
## loaded: otherwise if the namespace gets loaded by a saved object, the
## session will be unable to start.
##
## Probably some imports need to be declared in the NAMESPACE file.
##
## Hence the following trick...
sillyname <- library # cheating on codetools
sillyname(methods)
library.dynam.unload("GenomicRanges", libpath)
}

.onUnload <- function(libpath) library.dynam.unload("GenomicRanges", libpath)

0 comments on commit 315c33a

Please sign in to comment.