diff --git a/R/ontology.R b/R/ontology.R index a6b42c2..bf202a2 100644 --- a/R/ontology.R +++ b/R/ontology.R @@ -44,7 +44,7 @@ getGoDates = function(){ #' #' @export goAtDate = function(path, date, overwrite = FALSE){ - if(exists(path)){ + if(file.exists(path) & !overwrite){ stop('File exists. Not overwriting') }