Class RCodeIO


  • public class RCodeIO
    extends Object
    • Constructor Detail

      • RCodeIO

        public RCodeIO()
    • Method Detail

      • getInterprocessDependencies

        public static String getInterprocessDependencies​(RCallerOptions rCallerOptions)
        Prepare R script with functions or/and module loadings that would be used in following IPC
        Parameters:
        rCallerOptions - Current parameters for selecting implementation
        Returns:
        R script with functions or/and module loadings to be added to user's code
      • getVariableExporting

        public static String getVariableExporting​(RCallerOptions rCallerOptions,
                                                  String variableName,
                                                  URI target)
        Prepare R script for exporting variable from top level R environment to file or another IPC channel
        Parameters:
        rCallerOptions - Current parameters for selecting implementation
        variableName - R variable to be exported
        target - file or socket where export should be saved
        Returns:
        R script for exporting variable to be added to user's code