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

fwrite crashes RStudio when na argument is passed #1725

Closed
contefranz opened this issue May 30, 2016 · 1 comment
Closed

fwrite crashes RStudio when na argument is passed #1725

contefranz opened this issue May 30, 2016 · 1 comment
Milestone

Comments

@contefranz
Copy link

I am using R v. 3.3.0 and RStudio 0.99.1197. The session crashes when the argument na is passed to fwrite(). Here is the minimal:

dt = data.table( a = 1:10, b = letters[ 1:10 ] )

# working with message:
# Your platform/environment has not detected OpenMP support. 
# fwrite() will still work, but slower in single threaded mode.
fwrite( dt, '~/Desktop/test.csv' )

# NOT WORKING 
fwrite( dt, '~/Desktop/test.csv', na = NA )

Is there anyone who's experiencing this?
Thanks in advance

@contefranz contefranz changed the title fwrite crashes RStudio when na argument is passed fwrite() crashes RStudio when na argument is passed May 30, 2016
@contefranz contefranz changed the title fwrite() crashes RStudio when na argument is passed fwrite crashes RStudio when na argument is passed May 30, 2016
@arunsrinivasan
Copy link
Member

The argument needs to be a string. na = "NA" works. We need to make sure to convert to string before calling the C-function.

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

No branches or pull requests

3 participants