search for: argv2

Displaying 4 results from an estimated 4 matches for "argv2".

Did you mean: argv
2009 Nov 11
0
Passing MULTIPLE arguments from php file to r scripts
...<?php** $a=1; $cmd = "echo 'argv1 <- \"ex_1.R\"; source(argv1)' | " . "/usr/bin/R --vanilla --slave "; //print($cmd); $ret = system($cmd); ?> *Then I changed the r script ex_1.r:---* print("hello") print(argv1) print(argv2) When I ran the php file neither the php file could invoke the r script nor the arguments got printed(none of the arghuments got printed,not even argv1 ) So with this change in $cmd :-- $cmd = "echo 'argv1 <- \"ex_1.R\"; source(argv1)' | " ."echo 'argv2...
2010 Sep 16
1
[RFC] function to parse string to argc/argv pair
...move it. This is normal unless the maximum length is met/exceeded. */ if (str[curpos - 1] == ' ') str[--curpos] = '\0'; return curpos; } /* rosh_argcat */ int main (int argc, char *argv[]) { char in[INS]; int inl; char *ret; int argc2; char **argv2; #ifdef __COM32__ console_ansi_std(); #endif inl = argcat(in, INS, argc, argv); printf(" %d: ", inl); puts(in); argc2 = parse_args1(&argv2, in); print_argv(argc2, argv2); free_args1(&argv2); puts(""); return 0; }
2010 Sep 09
0
calling Rf_initEmbeddedR error
Hi all, I have a problem of Rf_initEmbeddedR function. I've tried with: try { int Argc1 = 1; char *Argv1[] = {"Rtest_1"}; int Argc2 = 1; char *Argv2[] = {"Rtest_2"}; // Init R(first) Rf_initEmbeddedR(Argc1, Argv1); // R package load SEXP e = R_NilValue; SEXP r = R_NilValue; PROTECT(e = lang2(install("source"), mkString("hreg.r"))); r = R_tryEval(e, R_GlobalEnv, NULL); // ---...
2013 Jul 31
29
[PATCH 0/9] tools: remove or disable old/useless/unused/unmainted stuff
depends on "autoconf: regenerate configure scripts with 4.4 version" This series removes some of the really old deadwood from the tools build and makes some other things which are on their way out configurable at build time with a default depending on how far down the slope I judge them to be. * nuke in tree copy of libaio * nuke obsolete tools: xsview, miniterm, lomount & sv *