Skip to content

Potential failure in make_instrument_auto #68

@TIngchangW

Description

@TIngchangW

The part:
allMissing <- apply(instrument, 1, function(x) {
all(is.na(x) | x == "")
})
caused an error on my PC: C stack usage 15923856 is too close to the limit.

It's odd as my 'instrument' is a 1750 * 10 tibble.
Solved the issue by avoiding apply():

allMissing = rep(FALSE, nrow(instrument))
for (i in 1:nrow(instrument)) {
x = instrument[i,]
allMissing[i] = all(is.na(x) | x == "")
}

Might help :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions