Skip to content

Commit

Permalink
fix goToday overwrite
Browse files Browse the repository at this point in the history
  • Loading branch information
oganm committed Oct 10, 2024
1 parent 4f4d4c4 commit a4ea539
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/ontology.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
#'
#' @export
goToday = function(path,overwrite = FALSE){
if(exists(path) & !overwrite){
stop('File exists, not downloading')
if(file.exists(path) & !overwrite){
warning('File exists, not downloading')
}
utils::download.file('http://purl.obolibrary.org/obo/go.obo',
destfile = path,quiet= TRUE)
Expand Down

0 comments on commit a4ea539

Please sign in to comment.