That latest version comes with a R Document Type definition, but users of older versions can still manually create that definition.
Setting up a R Development Environment for Windows
The R mome page is found here: https://www.r-project.org/
Download and run the Windows installer is found here: https://cran.r-project.org/bin/windows/base/
NOTE: At the time of writing the R-4.3.1 for Windows (79 megabytes, 64 bit) installer was used for this test.
Setting up the PATH
That 64 bit installer defaults to installing to this folder location:
Code: Select all
C:\Program Files\R\R-4.3.1\bin
For information on how to do this refer to the following link: viewtopic.php?t=6176
Testing the Setup
After making the PATH changes, start the Zeus IDE and use the Tools, DOS Command Line menu to run the following command:
Code: Select all
Rscript.exe --version
Code: Select all
---------------------------------------------------------------------------
Zeus IDE - Version 3.99am
Copyright (c) Xidicone P/L 2023 All rights reserved.
---------------------------------------------------------------------------
Rscript (R) version 4.3.1 (2023-06-16)
Creating a R Program
With the Zeus IDE installed, select the R Template option as shown below: Create a new test.r file usign the code shown below:
Code: Select all
hello <- function( name ) {
sprintf( "Hello, %s", name );
}
hello("world")
Consider this test.r file that creates a graph using the plot function:
Code: Select all
# NOTE: The plot function creates a file called Rplots.pdf
x <- seq(-2*pi,2*pi,0.1)
plot(x, sin(x))