Skip to content

Commit

Permalink
explicit dependency on RCurl for url.exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Mayer authored and Florian Mayer committed Jun 25, 2015
1 parent a96096a commit bf4a485
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions global.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ require(tidyr)
require(lubridate)
require(ggplot2)
require(qcc)
require(RCurl)
require(ckanr)

ckanr::ckanr_setup(url = "http://internal-data.dpaw.wa.gov.au/")
Expand Down
2 changes: 1 addition & 1 deletion server.R
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ shinyServer(function(input, output) {
text_instruction <- reactive({
if (is.null(input$ckan_r) ||
input$ckan_r == "" ||
!url.exists(input$ckan_r)) { return(NULL) }
!RCurl::url.exists(input$ckan_r)) { return(NULL) }
paste0("## Reproduce the figure:\n# source('", input$ckan_r, "')\n\n")
})

Expand Down

0 comments on commit bf4a485

Please sign in to comment.