Description Usage Arguments Value Examples
Carto API requires a file name but httr::write_disk
file path will
override it. So we can use any dummy file name for API call.
1 | sql_inquiry_save(inquiry, filepath, parameter = "")
|
inquiry |
sql inquiry string |
filepath |
output file path |
parameter |
additional parameter to sql inquiry, like file format, by default in JSON, could be GeoJSON |
request status
1 2 | sql_inquiry_save("SELECT * FROM table_1 limit 2", "e:/testgeo.json", "&format=GeoJSON")
sql_inquiry_save("SELECT * FROM table_1 limit 2", "e:/test.json")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.