Nik-Zainal-Group / signature.tools.lib

R package containing useful functions for mutational signature analysis
Other
80 stars 26 forks source link

Outdated function call when using devtools::test() #55

Closed RPdavies closed 1 year ago

RPdavies commented 1 year ago

Hi, the tests crash when executing test-matchClustering.R. Apparently the function computeCorrelation() does not exist. Is that true or is there something wrong with my installation? In addition, multiple other tests fail because object 'cosmic30' not found. Thanks for your time.

andreadega commented 1 year ago

That's odd, are you running devtools::test(), or are you running the code manually? Not all the code in the tests folder can be run manually. Can you try to run devtools::test(pkg = ".",filter = "matchClustering"), within the signature.tools.lib folder? Also can I make sure you have the latest code.

RPdavies commented 1 year ago

Thanks for your quick response @andreadega. I was indeed running devtools::test() when I got the errors. I was also running the latest version of the library, I installed it first time today. The good news is when I tried running the command again just now, it passes all the tests! On the other hand, I don't know what changed.. Thanks anyway!