Fixed by downgrading R version used.