Skip to content

Commit

Permalink
url.base now defined within get_data function
Browse files Browse the repository at this point in the history
  • Loading branch information
Pakillo committed Mar 17, 2018
1 parent d051bbf commit 4bd2bb8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions R/get_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#'
get_data <- function(apidest, apikey) {

url.base <- "https://opendata.aemet.es/opendata"

url1 <- paste0(url.base, apidest)

path1 <- httr::GET(url1, add_headers(api_key = apikey))
Expand Down
Binary file removed R/sysdata.rda
Binary file not shown.
3 changes: 0 additions & 3 deletions data-raw/config.R

This file was deleted.

0 comments on commit 4bd2bb8

Please sign in to comment.