overriding rpath filename when downloading
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Start by tracing bfcadd's construction of rpath and bfcupdate's rtype handling, then inspect how httr::GET responses are used. Define a supported filename override or response-derived filename behavior and verify that downloads with URL query strings retain a valid cache path.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Web resources are currently downloaded to rpath which is constructed by combining a unique id (if requested) and the file name extracted from the url. However, some url dont include a filename e.g.
src = 'https://pubchem.ncbi.nlm.nih.gov/sdq/sdqagent.cgi?infmt=json&outfmt=csv&query={%22download%22:%22*%22,%22collection%22:%22pathway%22,%22order%22:[%22relevancescore,desc%22],%22start%22:1,%22limit%22:10000000,%22downloadfilename%22:%22PubChem_pathway_text_Reactome%22,%22where%22:{%22ands%22:[{%22*%22:%22Reactome%22},{%22source%22:%22Reactome%22}]}}'
In this case the url contains json, so I think the download fails as the filename generated for rpath isnt valid. However, any url that doesn't have a filename at the end but returns a file could end up with an unwieldy filename in the cache folder.
I tried to overcome this using bfcupdate to change rpath before downloading, but it fails because bfcupdate changes the rtype to "local".
One option would be to include an input in bfcadd that allows the user to override the default filename for rpath e.g. rpath_filename = "new_filename.xyz" and construct rpath from that instead of trying to extract it from the url.
Or you could try to extract the intended filename from the httr:GET response, if there is one.
Is there a work around for this that doesnt need an update to BiocFileCache?
- Lingua principale
- R
- Stelle
- 14
- Fork
- 9
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Bioconductor/BiocFileCache
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Bioconductor/BiocFileCache#76 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 67/100
Bioconductor/BiocFileCache#75 · 1 commento ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
Bioconductor/BiocFileCache#72 · 3 commenti ·
-
Error in .util_downloadAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
Bioconductor/BiocFileCache#66 · 16 commenti ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
Bioconductor/BiocFileCache#60 · 3 commenti ·
Tutte le issue di Bioconductor/BiocFileCache
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
HelenaLC/spatialdataR#295 ·
-
size-time-budget
Difficoltà 2/5 1-3 ore Idoneità per principianti 69/100
kapelner/EDI#66 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Openscapes/blogscapes#61 ·
I maintainer di solito rispondono entro 1 giorno
-
bug posit-ai
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100