Closed rdiaz02 closed 2 years ago
Thank you for reporting this error. I don't manage to reproduce it, but I changed the comparison by accessing one variable from the list. Could you please try if the PR https://github.com/cbg-ethz/MC-CBN/pull/10 fixes this issue? Thank you very much!
This works, thanks!
However, I had to do library(relations)
as it first failed with Error in as.relation(A) : could not find function "as.relation"
. I think this is related to https://github.com/cbg-ethz/MC-CBN/issues/8. So I am closing this, but continue there.
Function learn_network_internal contains these lines
which can lead to an error when setting
_R_CHECK_LENGTH_1_LOGIC2_
toTRUE
(or toverbose
) becauseloglike_incompatible
has length > 1. Note that using that this more strict checking is the default policy in BioConductor (https://github.com/Bioconductor/BBS/issues/71 or https://bioconductor.org/checkResults/devel/bioc-LATEST/Renviron.bioc) and when testing with--as-cran
(https://cran.r-project.org/doc/manuals/r-release/R-ints.html#Tools : search forLENGTH_1_LOGIC2
).The following is a reproducible example
Which gives this error
I suggest writing
(max_loglike > loglike_incompatible)
using something likeisTRUE(any(max_loglike > loglike_incompatible))
or similar.