prompt wraps poorly on macOS
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 45/100
Línea de trabajo
Start at R/utilities.R around line 79 and inspect other uses of .util_ask(), as the issue suggests they may need the same treatment. Reproduce the cache-creation prompt on macOS and verify that the full message and “(yes/no):” remain in the intended order without left-aligned wrapping.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
When prompted to create a new AnnotationHub cache, at https://github.com/Bioconductor/BiocFileCache/blob/master/R/utilities.R#L79 , I see the equivalent of
> txt = paste0(cache, "\n does not exist, create directory?", " (yes/no): ")
> readline(txt)
/Users/ma38727/Library/Caches/BiocFileCache
(yes/no): exist, create directory?
where '(yes/no):' has been aligned to the left; maybe readline() is trying to wrap line width?
> sessionInfo()
R version 3.6.0 alpha (2019-03-29 r76306)
Platform: x86_64-apple-darwin17.7.0 (64-bit)
Running under: macOS High Sierra 10.13.6
Matrix products: default
BLAS: /Users/ma38727/bin/R-3-6-branch/lib/libRblas.dylib
LAPACK: /Users/ma38727/bin/R-3-6-branch/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] BiocFileCache_1.7.3 dbplyr_1.3.0
loaded via a namespace (and not attached):
[1] Rcpp_1.0.1 digest_0.6.18 crayon_1.3.4 dplyr_0.8.0.1
[5] assertthat_0.2.1 rappdirs_0.3.1 R6_2.4.0 DBI_1.0.0
[9] magrittr_1.5 RSQLite_2.1.1 httr_1.4.0 pillar_1.3.1
[13] rlang_0.3.3 curl_3.3 blob_1.1.1 bit64_0.9-7
[17] glue_1.3.1 bit_1.1-14 purrr_0.3.2 compiler_3.6.0
[21] pkgconfig_2.0.2 memoise_1.1.0 tidyselect_0.2.5 tibble_2.1.1
A solution might remove the \n and instead provide a single line, like
txt = paste0("'", cache, "' does not exist, create directory?", " (yes/no): ")
likely other uses of .util_ask() would need similar modification.
... or use cat() (stdout) for the body of the text, and readline() for "yes/no: "
- Lenguaje dominante
- R
- Estrellas
- 14
- Forks
- 9
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Bioconductor/BiocFileCache
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Bioconductor/BiocFileCache#76 · 1 comentario ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 67/100
Bioconductor/BiocFileCache#75 · 1 comentario ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Bioconductor/BiocFileCache#72 · 3 comentarios ·
-
Error in .util_downloadAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 25/100
Bioconductor/BiocFileCache#66 · 16 comentarios ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
Bioconductor/BiocFileCache#60 · 3 comentarios ·
Todos los issues de Bioconductor/BiocFileCache
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
HelenaLC/spatialdataR#295 ·
-
size-time-budget
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
kapelner/EDI#66 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Openscapes/blogscapes#61 ·
Los mantenedores suelen responder en 1 día
-
bug posit-ai
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100