bfcquery returns inconsistent column types for empty rows
還沒有人認領這個 Issue。
評估
研究方向
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 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 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 一週以上 新手友好度 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