I would like to check whether a given directory exists in a remote server, given the URL pointing to that directory. For example:
url <- "http://plasmodb.org/common/downloads/release-24"
How can this be accomplished in R? I have considered using url.show
, which downloads and shows the url if it exists but gives an error in the case of a non-existent directory. But I am not sure what would be the best approach, optimally without having to download the whole URL in the case of an existing directory.
?file.exists
? – tospigfile.exists(url)
returnsFALSE
but it should beTRUE
. – ddiez