Lucio Lelii 2017-07-17 08:51:24 +00:00
parent 682364d58b
commit 9ff65e1158
3 changed files with 4 additions and 2 deletions

View File

@ -131,7 +131,7 @@ public abstract class GenericRScript extends StandardLocalInfraAlgorithm {
LOGGER.debug("Executing the script...");
// execute the script in multi-user mode
environmentalParameters.put("gcube_token",config.getGcubeToken());
environmentalParameters.put("gcube_token","\""+config.getGcubeToken()+"\"");
Rlog = scriptmanager.executeRScript(config, scriptName, null, environmentalParameters, outputParameters, null, null, inputParameters, scriptMustReturnAFile, uploadScriptOnTheInfrastructureWorkspace, deletefiles, scriptSubfolder);
LOGGER.debug("..execution finished!");

View File

@ -216,7 +216,7 @@ public class LocalRScriptsManager {
bw.write("setwd(\"" + scriptdir + "\")\n");
for (String inputparam : inputParameters.keySet()) {
String value = inputParameters.get(inputparam);
bw.write(inputparam + "=" + value + "\n");
bw.write(inputparam + "<<-" + value + "\n");
}
bw.write("source('" + scriptPath.replace("\\", "/") + "')\n");
// bw.write("source('" + originalScriptPath.replace("\\", "/") + "')\n");

View File

@ -12,10 +12,12 @@ import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.UUID;
import org.gcube.common.scope.api.ScopeProvider;
import org.gcube.contentmanagement.lexicalmatcher.utils.AnalysisLogger;
import org.gcube.dataanalysis.ecoengine.configuration.AlgorithmConfiguration;
import org.gcube.dataanalysis.executor.scripts.OSCommand;
import org.slf4j.Logger;
public class RScriptsManager {