university-of-newcastle-research / pmwg

Repository for code for the Samplers Team at UoN
4 stars 3 forks source link

Fix warnings for package build #66

Closed gjcooper closed 1 year ago

gjcooper commented 1 year ago

Warnings include::

stats/qnorm qnorm should reference the stats package, not just assume its presence.

New test methods

Found if() conditions comparing class() to string: File ‘pmwg/R/efficient.R’: if (class(attempt) == "try-error") ... File ‘pmwg/R/sampling.R’: if (class(x) == "try-error") ... Use inherits() (or maybe is()) instead.