PeteHaitch / cometh

An R package with tools for analysing, managing and visualising co-methylation data. Loosely speaking, co-methylation is the correlation structure of DNA methylation.
0 stars 1 forks source link

Tests can't access functions from other packages #10

Closed PeteHaitch closed 10 years ago

PeteHaitch commented 10 years ago

The tests don't seem to be able to access functions from other packages such as IRanges and GenomicRanges. These packages are imported by the cometh package but don't seem to be available to the tests.

Why?

How do I fix this properly?

PeteHaitch commented 10 years ago

Fixed by having IRanges and GenomicRanges as Imports in the NAMESPACE. I did this by adding @import GenomicRanges IRanges to R/cometh.R, which is used to generate the package-level documentation and populate the NAMESPACE via roxygen2.