Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential failure in make_instrument_auto #68

Open
TIngchangW opened this issue Oct 5, 2023 · 1 comment
Open

Potential failure in make_instrument_auto #68

TIngchangW opened this issue Oct 5, 2023 · 1 comment

Comments

@TIngchangW
Copy link

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 :)

@RaymondBalise
Copy link
Owner

RaymondBalise commented Oct 5, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants