bfcquery returns inconsistent column types for empty rows
まだ誰も着手していません。
評価
調査の方向性
Start at the bfcquery entry point and reproduce the two map_df examples from the issue, comparing the column types for successful and empty results. Done means create_time and access_time have the same type in both cases and multiple queries can be row-bound without the shown error.
索引モデルが issue の本文から書いたものです。
説明
The column header types for the columns create_time and access_time are character vectors when non-empty, and double vectors when empty.
I expect that they should consistently return the same type; maybe character vectors always; although it's not clear why they are not date or datetime types instead.
Returning inconsistent types throws an error when trying to row bind join multiple queries using purrr::map_df where some of the queries are successful and some of them fail:
> files_remote
[1] "ftp://ftp.ncbi.nlm.nih.gov/geo/samples/GSM1480nnn/GSM1480327/suppl/GSM1480327_K562_PROseq_minus.bw"
[2] "ftp://ftp.ncbi.nlm.nih.gov/geo/samples/GSM1480nnn/GSM1480327/suppl/GSM1480327_K562_PROseq_plus.bw"
> map_df(files_remote, bfcquery, x = bfc)
Error: Can't combine `create_time` <character> and `create_time` <double>.
Run `rlang::last_error()` to see where the error occurred.
> map_df(files_remote[1], bfcquery, x = bfc)
# A tibble: 1 x 10
rid rname create_time access_time rpath rtype fpath last_modified_t… etag
<chr> <chr> <chr> <chr> <chr> <chr> <chr> <dbl> <chr>
1 BFC6 ftp:… 2020-06-29… 2020-06-29… /hom… web ftp:… NA NA
# … with 1 more variable: expires <dbl>
> map_df(files_remote[2], bfcquery, x = bfc)
# A tibble: 0 x 10
# … with 10 variables: rid <chr>, rname <chr>, create_time <dbl>,
# access_time <dbl>, rpath <chr>, rtype <chr>, fpath <chr>,
# last_modified_time <dbl>, etag <chr>, expires <dbl>
>
- 主要言語
- R
- スター
- 14
- フォーク
- 9
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Bioconductor/BiocFileCache のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
Bioconductor/BiocFileCache#76 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 67/100
Bioconductor/BiocFileCache#75 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
Bioconductor/BiocFileCache#72 · コメント 3 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
Bioconductor/BiocFileCache#66 · コメント 16 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
Bioconductor/BiocFileCache#60 · コメント 3 件 ·
Bioconductor/BiocFileCache の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
HelenaLC/spatialdataR#295 ·
-
size-time-budget
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Openscapes/blogscapes#61 ·
メンテナーはふだん 1 日以内に返信
-
bug posit-ai
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100