Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

vroom_fwf does not read remote files #551

Open
@bart1

Description

@bart1

The documentation saysvroom_fwf should read remote files however this does not seems to be true. I'm not sure if it is a documentation problemen or a bug. Thevroom function works as expected and reads a remote file (with some warnings in this case because the wrong file format).

require(vroom)#> Loading required package: vroomurl<-"https://raw.githubusercontent.com/tidyverse/vroom/refs/heads/main/inst/extdata/fwf-sample.txt"# Reads the file without troublevroom::vroom(url,delim="")#> New names:#> • `` -> `...3`#> • `` -> `...4`#> • `` -> `...5`#> • `` -> `...6`#> • `` -> `...7`#> • `` -> `...8`#> • `` -> `...9`#> • `` -> `...10`#> • `` -> `...11`#> • `` -> `...13`#> • `` -> `...14`#> • `` -> `...15`#> • `` -> `...16`#> • `` -> `...17`#> • `` -> `...18`#> • `` -> `...19`#> Warning: One or more parsing issues, call `problems()` on your data frame for details,#> e.g.:#>   dat <- vroom(...)#>   problems(dat)#> Rows: 2 Columns: 20#> ── Column specification ────────────────────────────────────────────────────────#> Delimiter: " "#> chr  (6): John, Smith, ...9, WA, ...17, 418-Y11-4111#> lgl (14): ...3, ...4, ...5, ...6, ...7, ...8, ...10, ...11, ...13, ...14, .....#>#> ℹ Use `spec()` to retrieve the full column specification for this data.#> ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.#> # A tibble: 2 × 20#>   John  Smith  ...3  ...4  ...5  ...6  ...7  ...8  ...9  ...10 ...11 WA    ...13#>   <chr> <chr>  <lgl> <lgl> <lgl> <lgl> <lgl> <lgl> <chr> <lgl> <lgl> <chr> <lgl>#> 1 Mary  Hartf… NA    NA    NA    NA    NA    NA    CA    NA    NA    <NA>  NA#> 2 Evan  Nolan  NA    NA    NA    NA    NA    NA    <NA>  NA    NA    IL    NA#> # ℹ 7 more variables: ...14 <lgl>, ...15 <lgl>, ...16 <lgl>, ...17 <chr>,#> #   ...18 <lgl>, ...19 <lgl>, `418-Y11-4111` <chr># Seems to not read remote filesvroom::vroom_fwf(url)#> Error: `file` must be a regular file, not a connection

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp