Hi Juhui,
it is due to the fact that in the web editor, you only have to provide
with the workflow (which is actually a piece of workflow called puzzle) 
and not with the start method.
So your last line should be:

exploration -< (rTask hook copy)

Mathieu


Le 08/02/2016 13:45, jwang a écrit :
> Hi,
>
> I'm testing an R program  with OpenMOLE 5.9. The Mole works fine in
> command mode, but gives the following error in Web mode:
>
>       <console>:220: error: type mismatch;
>               found   : Unit
>        required: org.openmole.core.workflow.puzzle.PuzzleBuilder
>               }
>               ^
>       <console>:220: error: type mismatch;
>        found   : Unit
>        required: org.openmole.core.workflow.puzzle.PuzzleBuilder
>                              }
>                      ^
> the Mole is as follows:
>
>
> // Declare the variable
> val K = Val[Int]
> val Y0 = Val[Int]
> val a = Val[Double]
> val output = Val[File]
>  
> // R task
> val rTask =
>   SystemExecTask(
>     "./care.bin",
>     "./care/re-execute.sh  R -f ME.R --slave --args K=${K} Y0=${Y0} a=
> ${a}"
>   ) set (
>     resources += workDirectory / "care.bin",
>     inputs += (K, Y0, a),
>     outputs += (K, Y0, a),
>     outputFiles +=
> ("care/rootfs/home/jwang/bananier/Software/CARE/out_ME.csv", output)
>   )
>  
> val exploration =
>   ExplorationTask(
>    (K in List(300,400)) x (Y0 in List(40)) x (a in (0.1 to 0.3 by 0.1))
>   )
>  
> val copy = CopyFileHook(output, workDirectory /
> "results/result-${K}-${Y0}-${a}.csv")
>
>
> val ex = exploration -< (rTask hook copy) start
>
>
> Thanks!
>
> Juhui
>
>
> _______________________________________________
> OpenMOLE-users mailing list
> [email protected]
> http://fedex.iscpif.fr/mailman/listinfo/openmole-users


-- 
Ingénieur de Recherche ISCPIF-CNRS

Be green, keep it on the screen
Faites bonne impression et imprimez seulement au besoin! 

_______________________________________________
OpenMOLE-users mailing list
[email protected]
http://fedex.iscpif.fr/mailman/listinfo/openmole-users

Reply via email to