Description Usage Arguments Details Value Author(s) See Also Examples
Functions for downloading files from Opasnet Media Wiki environments.
1 2 3 | opasnet.data(filename, wiki = "", unzip = "")
opasnet.csv(filename, wiki = "", unzip = "", ...)
opasnet.page(pagename, wiki = "")
|
filename |
Path to file in Opasnet after the "images/" part. |
pagename |
Name of a page in Opasnet. |
wiki |
Name of the Opasnet wiki: "opasnet_en" for en.opasnet.org, "opasnet_fi" for fi.opasnet.org or "heande" for heande.opasnet.org (accessible only within Heande wiki). |
unzip |
Name of the file in the package (if compressed using zip). |
... |
Excess arguments will be passed to |
These functions make it easy to download Opasnet files for being used in R. Required path (filename) for file must be resolved
using the corresponding Media Wiki. Big data files should always be compressed before uploading to Opasnet. Using the
unzip
-argument makes it easy to download and directly use any zip-compressed files.
opasnet.page
downloads wiki pages using getURL
from RCurl
.
See also: http://en.opasnet.org/
opasnet.data |
Returns the file data as is. |
opasnet.csv |
Returns |
opasent.page |
Returns the web page as a single string. |
E. Happonen einari.happonen@thl.fi, T. Rintala teemu.rintala.a@gmail.com
1 2 3 4 5 | ## Not run:
opasnet.csv("4/49/Test.zip", wiki = "opasnet_fi", unzip = 'ejpop.csv', sep=';')
opasnet.data("c/cc/Test_bugs_model.txt", wiki = "opasnet_en")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.