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