download_graph | R Documentation |
Access KGS server and download the latest rank graph of the specified player. Requires internet connection. Returns the path to the downloaded file if succeeded.
download_graph(id, dst = tempfile(), lang = "en", country = "US", method = "libcurl", ...)
id |
KGS ID |
dst |
destination file path or directory |
lang |
language code, a lower case character of length 2 |
country |
country code, an upper case character of length 2 |
method |
method to be used for downloading files. See |
... |
optional arguments for |
Default setting downloads the English version. Another good option is
to set lang='ja'
and country='JP'
, which downloads the Japanese version.
path to the saved file
download.file
## Not run: f <- download_graph('twoeye') p <- png::readPNG(f) plot.new() rasterImage(p,0,0,1,1) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.