Displaying 20 results from an estimated 1000 matches similar to: "R_ParseVector API change"
2007 May 29
1
question about R_ParseVector function
Hi r-devel,
The R_ParseVector has been changed in R-2.5.0, and there is a simple
description about the 4th argument at
http://stat.ethz.ch/R-manual/R-patched/NEWS, it says that:
"R_ParseVector() has a new 4th argument 'SEXP srcfile' allowing source
references to be attached to the returned expression list. "
I do not quite understand the purpose of adding the 4th argument. Would
2019 Dec 14
1
Inconsistent behavior for the C AP's R_ParseVector() ?
Hi Simon,
Widespread errors would have caught my earlier as the way that code is
using only one initialization of the embedded R, is used quite a bit, and
is covered by quite a few unit tests. This is the only situation I am aware
of in which an error occurs.
What is a "correct context", or initial context, the code should from ?
Searching for "context" in the R-exts manual
2009 Jun 18
1
R_parseVector and syntax error [was: error messages while parsing with rniParse]
Hello,
[I'm redirecting this here from stats-rosuda-devel]
When parsing R code through R_parseVector and the code generates an
error (syntax error), is there a way to grab the error.
It looks like yyerror populates the buffer "R_ParseErrorMsg", but then
the variable is not part of the public api.
Would it be possible to add yet another entry point to the parser that
would
2019 Dec 14
2
Inconsistent behavior for the C AP's R_ParseVector() ?
Le lun. 9 d?c. 2019 ? 09:57, Tomas Kalibera <tomas.kalibera at gmail.com> a
?crit :
> On 12/9/19 2:54 PM, Laurent Gautier wrote:
>
>
>
> Le lun. 9 d?c. 2019 ? 05:43, Tomas Kalibera <tomas.kalibera at gmail.com> a
> ?crit :
>
>> On 12/7/19 10:32 PM, Laurent Gautier wrote:
>>
>> Thanks for the quick response Tomas.
>>
>> The same error
2019 Dec 07
2
Inconsistent behavior for the C AP's R_ParseVector() ?
Thanks for the quick response Tomas.
The same error is indeed happening when trying to have a zero-length
variable name in an environment. The surprising bit is then "why is this
happening during parsing" (that is why are variables assigned to an
environment) ?
We are otherwise aware that the error is not occurring in the R console,
but can be traced to a call to R_ParseVector() in
2019 Dec 09
3
Inconsistent behavior for the C AP's R_ParseVector() ?
Le lun. 9 d?c. 2019 ? 05:43, Tomas Kalibera <tomas.kalibera at gmail.com> a
?crit :
> On 12/7/19 10:32 PM, Laurent Gautier wrote:
>
> Thanks for the quick response Tomas.
>
> The same error is indeed happening when trying to have a zero-length
> variable name in an environment. The surprising bit is then "why is this
> happening during parsing" (that is why
2019 Nov 30
2
Inconsistent behavior for the C AP's R_ParseVector() ?
Hi again,
Beside R_ParseVector()'s possible inconsistent behavior, R's handling of
zero-length named elements does not seem consistent either:
```
> lst <- list()
> lst[[""]] <- 1
> names(lst)
[1] ""
> list("" = 1)
Error: attempt to use zero-length variable name
```
Should the parser be made to accept as valid what is otherwise possible
2020 May 24
0
Fwd: RKWard and R 4.0.0 - Important bug and workaround
Dear all,
as I am providing rkward backports for Debian testing and stable on CRAN, I am
forwarding this notice by the main developer.
Meanwhile, it has been communicated that R 4.0.1 will be released on June 6.
Cheers,
Johannes
---------- Weitergeleitete Nachricht ----------
Betreff: RKWard and R 4.0.0 - Important bug and workaround
Datum: Sonntag, 24. Mai 2020, 10:14:17 CEST
Von:
2019 Nov 30
2
Inconsistent behavior for the C AP's R_ParseVector() ?
Hi,
The behavior of
```
SEXP R_ParseVector(SEXP, int, ParseStatus *, SEXP);
```
defined in `src/include/R_ext/Parse.h` appears to be inconsistent depending
on the string to be parsed.
Trying to parse a string such as `"list(''=1+"` sets the
`ParseStatus` to incomplete parsing error but trying to parse
`"list(''=123"` will result in R sending a message to the
2007 Feb 01
0
Fwd: Re: read.spss and encodings
--- John Kane <jrkrideau at yahoo.ca> wrote:
> Date: Thu, 1 Feb 2007 09:07:11 -0500 (EST)
> From: John Kane <jrkrideau at yahoo.ca>
> Subject: Re: [R] read.spss and encodings
> To: Thomas Friedrichsmeier
> <thomas.friedrichsmeier at ruhr-uni-bochum.de>
>
> Hi Thomas,
>
> I am using R 2.4.1 on WindowsXP and I don't seem to
> be
> having any
2008 Mar 19
1
R_ParseVector problem: it's cutting off after the decimal point
Dear all,
my aim is to integrate R in an interactive visualisation software
called Bulk Analyzer developed by VrVis (http://www.vrvis.at).
the code:
SEXP e, tmp;
ParseStatus status;
PROTECT(tmp = mkString("x <- c(1.234,-3.45)"));
PrintValue(tmp);
PROTECT(e = R_ParseVector(tmp, -1, &status, R_NilValue));
PrintValue(e);
UNPROTECT(2);
produces the following output:
[1] "x
2007 Mar 01
1
Default par() options
The following question/idea came up on the RKWard development mailing list,
but might be of general interest:
Is there a nice way to customize the default look of all graphs on all
devices? I.e. a way to - for instance - set the following options before each
plot:
par(bg="light gray", las=2, pch=19)
As far as I have found, there would currently be two ways to do this:
1) Adding the
2019 Dec 09
0
Inconsistent behavior for the C AP's R_ParseVector() ?
On 12/9/19 2:54 PM, Laurent Gautier wrote:
>
>
> Le?lun. 9 d?c. 2019 ??05:43, Tomas Kalibera <tomas.kalibera at gmail.com
> <mailto:tomas.kalibera at gmail.com>> a ?crit?:
>
> On 12/7/19 10:32 PM, Laurent Gautier wrote:
>> Thanks for the quick response Tomas.
>>
>> The same error is indeed happening when trying to have a
>>
2019 Dec 14
0
Inconsistent behavior for the C AP's R_ParseVector() ?
Laurent,
the main point here is that ParseVector() just like any other R API has to be called in a correct context since it can raise errors so the issue was that your C code has a bug of not setting R correctly (my guess would be your'e not creating the initial context necessary in embedded R). There are many different errors, your is just one of many that can occur - any R API call that
2019 Dec 09
0
Inconsistent behavior for the C AP's R_ParseVector() ?
On 12/7/19 10:32 PM, Laurent Gautier wrote:
> Thanks for the quick response Tomas.
>
> The same error is indeed happening when trying to have a zero-length
> variable name in an environment. The surprising bit is then "why is
> this happening during parsing" (that is why are variables assigned to
> an environment) ?
The emitted R error (in the R console) is not a
2006 Nov 07
2
Crash when embedding R X11 windows
Dear R developers,
I've been experimenting with embedding R X11 windows into another application
using KDE's QXEmbed on linux. Attempting to do so will crash R (with R 2.4.0,
trunk, and I know the bug has been around in prior versions). I used to think
this was related to bug #848, but I'm not sure, if / how the solution
suggested there still applies to current versions of R.
2019 Dec 02
0
Inconsistent behavior for the C AP's R_ParseVector() ?
Dear Laurent,
could you please provide a complete reproducible example where parsing
results in a crash of R? Calling parse(text="list(''=123") from R works
fine for me (gives Error: attempt to use zero-length variable name).
I don't think the problem you observed could be related to the memory
leak. The leak is on the heap, not stack.
Zero-length names of elements in a
2005 Oct 17
1
RFC: API to allow identification of warnings and errors in the output stream
Dear R developers,
this mail is basically a summary / clarification of some previous mails I sent
to this list last week (subject "Catching warning and error output"). Duncan
Murdoch pointed out that these were badly organized, and suggested I repost,
collecting the main points previously spread out between several mails.
Problem statement:
In an application embedding R, I would
2008 Aug 04
2
Parsing code with newlines
Dear List,
When I try to parse code containing newline characters with R_ParseVector, I
get a compilation error. How can I compile code that includes comments and
newlines?
I am using the following:
void* my_compile(char *code)
{
SEXP cmdSexp, cmdExpr = R_NilValue;
ParseStatus status;
PROTECT (cmdSexp = allocVector (STRSXP, 1));
SET_STRING_ELT (cmdSexp, 0, mkChar (code));
2006 Apr 18
2
typos in src/main/gram.y (PR#8780)
In src/main/gram.y, the documentation for R_ParseVector has a wrong
signature:
SEXP R_ParseVector(TextBuffer *text, int n, ParseStatus *status)
should be
SEXP R_ParseVector(SEXP text, int n, ParseStatus *status)
In addition, the two occurrences of "IOBuffer" in the documentation
should be replaced by "IoBuffer".
version.string = Version 2.3.0 beta (2006-04-14 r37779)