famuvie / breedR

Statistical methods for forest genetic resources analysts
http://famuvie.github.io/breedR/
GNU General Public License v3.0
31 stars 24 forks source link

tests: dependency on spam, and loading breedR datasets #54

Open famuvie opened 8 years ago

famuvie commented 8 years ago

these are two different issues:

  1. Some tests (reml-competition and variogram) use package spam which is correctly listed under the field Suggests: in DESCRIPTION. However, it is not loaded correctly within the tests (i.e. using if(require.package('spam')) ...
  2. Some tests (e.g. animal) use the datasets packaged with breedR. While they usually load the dataset using data(), test_package() fails whenever breedR is not loaded beforehand. Check how is this supposed to be done.