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

Unhelpful error message with write_dta(NULL) #287

Closed
otoomet opened this Issue Apr 28, 2017 · 0 comments

Comments

Projects
None yet
2 participants
@otoomet
Copy link

otoomet commented Apr 28, 2017

haven::write_dta(NULL, path="d.dat")
gives

Error in if (any(bad_labels)) { : missing value where TRUE/FALSE needed

this is confusing and does not help in debugging. An error message along the lines "Error in haven::write_dta: 'data' must be a data.frame, not NULL" would help to find the problem more easily.

Thanks for haven :-)

@hadley hadley closed this in 9320d75 Jul 7, 2017

@hadley hadley added the feature label Jul 7, 2017

@lock lock bot locked and limited conversation to collaborators Jun 26, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.