Title: | A Simple Example of Using 'Asio' from 'R' via 'Rcpp' |
---|---|
Description: | The 'AsioHeader' packages brings the 'Asio' library in a header-only format to R. This package illustrates its use via a simple example, and be used as a test whether all relevant packages are correctly setup to allow compilation. |
Authors: | Dirk Eddelbuettel [aut, cre] |
Maintainer: | Dirk Eddelbuettel <[email protected]> |
License: | GPL (>= 2) |
Version: | 0.0.1.1 |
Built: | 2024-11-12 02:39:04 UTC |
Source: | https://github.com/eddelbuettel/rcppasioexample |
The 'AsioHeader' packages brings the 'Asio' library in a header-only format to R. This package illustrates its use via a simple example, and be used as a test whether all relevant packages are correctly setup to allow compilation.
Dirk Eddelbuettel <[email protected]>
Dirk Eddelbuettel [aut, cre] (<https://orcid.org/0000-0001-6419-907X>)
This function implements a very simple http client. It follows the http_client.cpp
example in the Asio documentation but has been adapted to be used as an example function
here.
httpClient(host, path)
httpClient(host, path)
host |
A character variable with an internet host name |
path |
A character variable with an accessible path |
Nothing is returned as the function is invoked for its a side-effect of display what is retrieved.
## Not run: ## now commented-out / inactive as the redirect upsets R's own checking httpClient("www.apache.org", "/robots.txt") ## End(Not run)
## Not run: ## now commented-out / inactive as the redirect upsets R's own checking httpClient("www.apache.org", "/robots.txt") ## End(Not run)