See this video for instructions on how to set up the R environment on Windows.
R
, use the following code to install the dependencies:```R library(devtools) install_github("ohdsi/SqlRender", ref = "v1.5.2") install_github("ohdsi/DatabaseConnector", ref = "v2.2.0")
#Install EBImage source("http://bioconductor.org/biocLite.R") biocLite("EBImage") ```
If you experience problems on Windows where rJava can't find Java, one solution may be to add args = "--no-multiarch"
to each install_github
call, for example:
R
install_github("ohdsi/SqlRender", args = "--no-multiarch")
Alternatively, ensure that you have installed both 32-bit and 64-bit JDK versions, as mentioned in the video tutorial.
R
load(file.path(getwd(), 'extra/sampleCT.rda'))
Sample CT data is in nifti format, and both the image width and height are 128.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.