Displaying 2 results from an estimated 2 matches for "argc2".
Did you mean:
arg2
2010 Sep 16
1
[RFC] function to parse string to argc/argv pair
...39; at the end, remove 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_Global...