-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add simple browser function to download toolbox
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#' Browse the LifeWatch/EMODnet-Biology Download Toolbox on your browser | ||
#' | ||
#' @return NULL, only opens the Download Toolbox in your browser. | ||
#' @export | ||
#' | ||
#' @examples eurobis_download_toolbox() | ||
eurobis_download_toolbox <- function(){ | ||
url <- eurobis_url$info$toolbox | ||
req <- httr::HEAD(url) | ||
httr::stop_for_status(req) | ||
|
||
if(interactive()){ | ||
message("The LifeWatch/EMODnet-Biology Download Toolbox provides a web interface to fine tune the selection of data from EurOBIS. At the end of the selection there is a button named \"Get webservice url\". Copy&Paste this URL into eurobis_occurrences(url = \"<URL>\"). Press ENTER to continue:" ) | ||
readline("") | ||
browseURL(url) | ||
} | ||
|
||
NULL | ||
} |