/// <summary> /// Execute a single script found on a URL/path or a chain of scripts found on a set of URLs/paths /// on the current project. /// /// To execute a chain of repository-managed scripts on this call provide a comma-separated /// list of values on the externalSource parameter. /// Chained execution executes each of the scripts identified on the call in a sequential /// fashion on the R session, with execution occuring in the order specified on the parameter list. /// /// POWER_USER privileges are required for this call. /// </summary> /// <param name="externalSource">RScript represented as a URL or DeployR file path</param> /// <param name="options">Options for this execution</param> /// <returns>RProjectExecution object</returns> /// <remarks></remarks> public RProjectExecution executeExternal(String externalSource, ProjectExecutionOptions options) { RProjectExecution returnValue = RProjectExecuteImpl.executeScript(m_projectDetails, null, null, null, null, externalSource, options, m_client, Constants.RPROJECTEXECUTESCRIPT); return(returnValue); }
/// <summary> /// Execute a single repository-managed script or a chain of repository-managed scripts /// on the current project. /// /// To execute a chain of repository-managed scripts on this call provide a comma-separated /// list of values on the scriptName, scriptAuthor and optionally scriptVersion parameters. /// Chained execution executes each of the scripts identified on the call in a sequential /// fashion on the R session, with execution occuring in the order specified on the parameter list. /// /// Deprecated. As of release 7.1, use executeScript method that supports scriptDirectory parameter. This deprecated call assumes each script is found in the root directory. /// /// </summary> /// <param name="scriptName">name of valid R Script</param> /// <param name="scriptAuthor">author of the R Script</param> /// <param name="scriptVersion">version of the R Script to execute</param> /// <param name="options">Options for this execution</param> /// <returns>RProjectExecution object</returns> /// <remarks></remarks> public RProjectExecution executeScript(String scriptName, String scriptAuthor, String scriptVersion, ProjectExecutionOptions options) { RProjectExecution returnValue = RProjectExecuteImpl.executeScript(m_projectDetails, scriptName, "root", scriptAuthor, scriptVersion, null, options, m_client, Constants.RPROJECTEXECUTESCRIPT); return(returnValue); }