spsspkg.SetOutput Function (R)
spsspkg.SetOutput("value"). Specifies whether output from R is displayed
in the IBM® SPSS® Statistics Viewer. This applies to explicit output from R, such as from the print function. It also applies to graphical
output, such as from the R plot function. The value of the argument is a quoted string: "ON" to
display output from R, "OFF" to suppress the display of output from
R. The default is "ON".
- The setting persists for the current IBM SPSS Statistics session.
- It is important to note the interaction of the
spsspkg.SetOutputfunction and thespssRGraphics.SetOutputfunction. Withspsspkg.SetOutput("ON")you can turn off display of graphics withspssRGraphics.SetOutput("OFF").spsspkg.SetOutput("OFF"), however, applies to all output and overridesspssRGraphics.SetOutput("ON"). - The
spsspkg.SetOutputfunction has no effect when running IBM SPSS Statistics from R.
Example
spsspkg.SetOutput("OFF")