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

RStudio view displays NA as 0(integer64 type column in dataframe) #6869

Closed
4 tasks done
mstkolf opened this issue May 14, 2020 · 4 comments · Fixed by #7366
Closed
4 tasks done

RStudio view displays NA as 0(integer64 type column in dataframe) #6869

mstkolf opened this issue May 14, 2020 · 4 comments · Fixed by #7366
Assignees
Milestone

Comments

@mstkolf
Copy link

@mstkolf mstkolf commented May 14, 2020

System details

RStudio Edition : Desktop
RStudio Version : Version 1.2.5042
OS Version      : macOS Catalina(version 10.15.4)
R Version       : R version 3.5.2 (2018-12-20)

Steps to reproduce the problem

When you print the data in the console, these values will be NA correctly (even in int64 column).

library(tibble)

(
tbl <- tibble(
  col_dbl = c(NA, 2, 3, 4, 5),
  col_int64 = bit64::as.integer64(c(NA, 2, 3, 4, 5))
  )
)
#> # A tibble: 5 x 2
#>   col_dbl col_int64
#>     <dbl> <int64>  
#> 1      NA NA       
#> 2       2  2       
#> 3       3  3       
#> 4       4  4       
#> 5       5  5

Created on 2020-05-13 by the reprex package (v0.3.0)

But, if you click on a dataset to see the preview(or View(tbl)), it shows first row value in col_int64 as 0, see the attached screenshot.
RStudio view displays NA as 0(integer64 type column in dataframe)

@kevinushey kevinushey added this to the v1.4 milestone May 15, 2020
@kevinushey
Copy link
Contributor

@kevinushey kevinushey commented May 15, 2020

@ronblum
Copy link
Contributor

@ronblum ronblum commented May 18, 2020

@mstkolf Thank you for filing the issue! I am able to reproduce it using RStudio Desktop 1.3.958 with R 4.0.0 and RStudio Server with R 3.6.3. We'll review this issue as we continue development of RStudio.

@R-Hannibal
Copy link

@R-Hannibal R-Hannibal commented Sep 14, 2020

@mstkolf, thanks again for finding and reporting this issue.

We have a fix in place in our latest Daily build of the upcoming 1.4 release of RStudio (available HERE). If you get the chance will you let us know if the issue is resolved for you in that build?

@kfeinauer
Copy link
Contributor

@kfeinauer kfeinauer commented Oct 16, 2020

Verified fixed on 1.4.944

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

Successfully merging a pull request may close this issue.

6 participants