Displaying 20 results from an estimated 2000 matches similar to: "Continuation and parse"
2008 Sep 03
8
suggestion of new API function for embedded programming.
While doing some embedded programming and trying to figure out how to generate
a hand coded SEXP equivalent of the line
"t.test(x,conf.level=(1-p))$conf.int[2]" I had an idea for an addition to the
embedded API.
There are a number of hidden or static parse functions (R_ParseBuffer,
R_Parse1Buffer, etc.) which take an IoBuffer* and returns a parsed tree. If
one or more of these
2003 Aug 24
1
declarations in non-exported headers and embedding R
Hello,
I've been using R embedded in PL/R (R procedural language handler for
PostgreSQL, http://www.joeconway.com/plr/) very successfully for several
months now. A sincere "thank you" goes to the R development team for
such a great product.
I have a question I'm hoping someone here can help me with. In order to
get the required functionality out of PL/R, I've had to
2007 Jan 18
0
Emulating a REPL in frontends
A common need in R frontends is to provide some sort of read, (parse),
evaluate, print loop. However, there are also a number of points where
frontends may want to differ from the standard REPL as available e.g. in
R_ReplDLLdo1().
First some thoughts on what is needed, and what is already there, or missing.
If you want to skip over this, a short summary is provided in the second
half, below
2013 Nov 11
3
Scrabble??
Does anyone know a way to run a Scrabble program on
CentOS? (I realize the obvious existence of Wine and of virtual
machines; but my experience with both has been thoroughly
unsatisfactory. So I'd much rather get a linux-native app.)
There seem to be two proprietary Scrabble programs, one
in which you play against the computer, and one in which you play
against a remote friend.
2010 Aug 23
1
Speed improvement to PROTECT, UNPROTECT, etc.
As I mentioned in my previous message about speeding up evalList, I've
been looking at ways to speed up the R interpreter. One sees in the
code many, many calls of PROTECT, UNPROTECT, and related functions, so
that seems like an obvious target for optimization. Indeed, I've
found that one can speed up the interpreter by about 10% by just
changing these.
The functions are actually macros
2006 Nov 27
1
R.DLL mapping by P/Invoke
After a long processing, I was able to create a version of a small C# class
that was able to emulate the rproxy by P/Invoke. This is mostly to find a
workaround a performance problem of the StatConnector.
It's almost work but ... I have strange memory exception when I call the
print function. The variable seems to not survive from one call to the
other.
As there is no debug symbol for
2007 Jan 17
2
R_ParseVector API change
Dear R developers,
just a quick question: I noted that R_ParseVector () has gained an additional
parameter (since SVN rev. 39999). Since R_ParseVector () is part of the
public API, I'm wondering, whether this API change was intentional or not.
Either way is fine with me, but in order to make sure the next release of
RKWard will be compilable with R 2.5.0, I'd like to make sure,
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));
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
2007 Jan 03
1
troubles installing SJava for R
Hello all,
I am using R 2.4.0 and SJava 0.69-0 on linux.
I am not able to install SJava on R. The following errors appear when
installing:
...
** R
** inst
WARNING: use of install..R is no longer supported
** preparing package for lazy loading
Creating a new generic function for "merge" in "SJava"
** help
>>> Building/Updating help pages for package
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
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
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)
2019 May 19
4
most robust way to call R API functions from a secondary thread
Hi,
As the subject suggests, I am looking for the most robust way to call an (arbitrary) function from the R API from another but the main POSIX thread in a package's code.
I know that, "[c]alling any of the R API from threaded code is ?for experts only? and strongly discouraged. Many functions in the R API modify internal R data structures and might corrupt these data structures if
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
2008 Jul 10
1
Ellipsis arguments for plot.formula
Hi:
I have a function as follows:
my.plot <- function( x, y = NULL, ... )
{
plot( x, y, cex.axis=0.5, ...)
}
Set up the variables:
x <- 1:10; y <- x; tdf <- data.frame( x, y ); main.str <- "test"
I will exercise the function in two ways:
> my.plot( y ~ x, tdf, main = "test" )
This works fine
> my.plot( y ~ x, tdf, main = main.str )
Error in
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
2014 Apr 29
1
C API for parse error
May I know if we have any C api(or any other way) in retrieving the parse
error message after calling R_ParseVector?
--
View this message in context: http://r.789695.n4.nabble.com/C-API-for-parse-error-tp4689662.html
Sent from the R devel mailing list archive at Nabble.com.