Open adamhsparks opened 2 years ago
Found if() conditions comparing class() to string: File ‘ascotraceR/R/trace_asco.R’: if (class(primary_infection_foci) == "character") ... Use inherits() (or maybe is()) instead.
Using inherits() is the canonical R way here.
inherits()