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 |
Maintainer: | Dirk Eddelbuettel <[email protected]> |
License: | GPL (>= 2) |
Version: | 0.0.1.1 |
Built: | 2024-08-11 05:04:52 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
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)