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

Parse error in tidyverse_packages() #93

Closed
kent37 opened this issue Nov 15, 2017 · 0 comments

Comments

@kent37
Copy link

commented Nov 15, 2017

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))

@jennybc jennybc closed this in d966616 Jan 24, 2018

jennybc added a commit that referenced this issue Jan 24, 2018

Merge pull request #106 from coatless/master
Fixed parse error of tidyverse package names (close #93)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.