I am working with an algorithm R that calls a webservice that makes a query to a database and returns a JSON object.
url <- "https://example.com?id=1"
json_file <- "C:/xampp/htdocs/example/Download/data.json"
download.file(url, json_file)
document <- fromJSON(json_file)
On my machine the algorithm usually works bad when I go up to the server and run, I get the following error:
Error in download.file(url, json_file) : unsupported URL scheme
here is some problem for the url be https?