Skip to content

Parse error in tidyverse_packages() #93

Closed
@kent37

Description

@kent37

With tidyverse 1.2.1:

tidyverse::tidyverse_packages()
#>  [1] "broom"       "cli"         "crayon"      "dplyr"       "dbplyr"     
#>  [6] "forcats"     "ggplot2"     "haven"       "hms"         "httr"       
#> [11] "jsonlite"    "lubridate"   "magrittr"    "modelr"      "purrr"      
#> [16] "readr"       "readxl\n(>=" "reprex"      "rlang"       "rstudioapi" 
#> [21] "rvest"       "stringr"     "tibble"      "tidyr"       "xml2"       
#> [26] "tidyverse"

Note the entry for readxl.

Fix is to change

names <- vapply(strsplit(parsed, " +"), "[[", 1, FUN.VALUE = character(1))

to

names <- vapply(strsplit(parsed, "\\s+"), "[[", 1, FUN.VALUE = character(1))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions