Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
external_communication [2017/01/17 17:39] romulo [R Studio] |
external_communication [2017/12/11 17:46] romulo |
||
---|---|---|---|
Line 11: | Line 11: | ||
<note important>If the status bar shows 'External communication: off', check the Message Log for more information.</note> | <note important>If the status bar shows 'External communication: off', check the Message Log for more information.</note> | ||
- | + | ==== Pre Requisites ==== | |
- | ==== R Studio ==== | + | |
The following packages are necessary for sending and receiving data using R. To install the packages, do: | The following packages are necessary for sending and receiving data using R. To install the packages, do: | ||
<code> | <code> | ||
install.packages(c("Rcpp", "RcppProgress", "rbenchmark", "inline")) | install.packages(c("Rcpp", "RcppProgress", "rbenchmark", "inline")) | ||
</code> | </code> | ||
+ | <note important> if you are using Microsoft Windows, make sure your R installation path does not contain spaces.</note> | ||
+ | |||
+ | ==== Command Line === | ||
+ | Download {{::dinamica_1.0.3.tar.gz|Dinamica Package for R}} and install it: | ||
+ | <code> | ||
+ | install.packages("PATH_TO_DOWNLOADED_FILE", repos=NULL, type="source") | ||
+ | </code> | ||
+ | |||
+ | where PATH_TO_DOWNLOADED_FILE should match the downloaded file path, e.g. "/home/csr/Downloads/dinamica_1.0.3.tar.gz" on Linux or "c:/Users/CSR/Downloads/dinamica_1.0.3.tar.gz" on Windows.\\ | ||
\\ | \\ | ||
- | Then, install R Tools from [[https://cran.r-project.org/bin/windows/Rtools/]] \\ | + | Using the example path "/home/csr/Downloads/dinamica_1.0.3.tar.gz": |
+ | <code> | ||
+ | install.packages("/home/csr/Downloads/dinamica_1.0.3.tar.gz", repos=NULL, type="source") | ||
+ | </code> | ||
+ | |||
+ | ==== R Studio ==== | ||
+ | On Windows, Install R Tools from [[https://cran.r-project.org/bin/windows/Rtools/]] \\ | ||
\\ | \\ | ||
- | Download {{::dinamica_1.0.tar.gz|Dinamica Package for R}} and install it (using RStudio): | + | Download {{::dinamica_1.0.3.tar.gz|Dinamica Package for R}} and install it (using RStudio): |
<code> | <code> | ||
Tools -> Install Packages... | Tools -> Install Packages... | ||
Line 91: | Line 105: | ||
When transferring **Tables**, extra caution must be taken (refer to [[r_communication_utilities|this page]] for auxiliar tools.) | When transferring **Tables**, extra caution must be taken (refer to [[r_communication_utilities|this page]] for auxiliar tools.) | ||
- **Factor** columns must be converted to **Character Vectors** | - **Factor** columns must be converted to **Character Vectors** | ||
- | - Key columns must contain the '*' character on column names. | + | - Key columns can contain the '*' character on their names (to indicate they represent unique values). |
- | - From R to Dinamica, the **Table** variable **must** have the **DataFrame** type. | + | - From R to Dinamica, the **Table** variable **must** have the **DataFrame** type (or compatible). |
\\ | \\ | ||
Consider the following **Table**: | Consider the following **Table**: |