Skip to content

v8.1.0 mutate_at crashes when assigning NA_character_ #4374

@stephLH

Description

@stephLH

R session craches when executing the code below.
It used to work with dplyr 8.0.1

dplyr::tibble() %>% 
    dplyr::mutate_at("test", ~ NA_character_)

Session info

R version 3.5.3 (2019-03-11)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

Matrix products: default

locale:
[1] LC_COLLATE=French_France.1252  LC_CTYPE=French_France.1252    LC_MONETARY=French_France.1252
[4] LC_NUMERIC=C                   LC_TIME=French_France.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] magrittr_1.5

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.1        fansi_0.4.0       withr_2.1.2       utf8_1.1.4        zeallot_0.1.0     crayon_1.3.4     
 [7] dplyr_0.8.0.1     assertthat_0.2.1  R6_2.4.0          backports_1.1.4   pillar_1.4.0      cli_1.1.0        
[13] rlang_0.3.4       rstudioapi_0.10   vctrs_0.1.0       tools_3.5.3       glue_1.3.1        purrr_0.3.2      
[19] compiler_3.5.3    pkgconfig_2.0.2   sessioninfo_1.1.1 tidyselect_0.2.5  tibble_2.1.1    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions