Displaying 20 results from an estimated 2000 matches similar to: "Multi-line string constants: proposed patch"
2004 Sep 16
0
FW: Parsing multi-line strings. Bug? Feature?
> Kevin Wright <kwright@eskimo.com> writes:
>
> > R 1.9.1 requires multi-line strings to contain a backslash at the
> > end of each line (except the last line). As noted by Mark
> > Bravington (http://tolstoy.newcastle.edu.au/R/help/02b/5199.html)
> > this requirement appears to be undocumented.
> >
> > In S-Plus 6.2, multi-line strings do
1999 Nov 23
1
compile error for mkString on alpha (PR#332)
Full_Name: Albrecht Gebhardt
Version: 0.90.0
OS: osf4.0
Submission from: (NULL) (143.205.61.73)
I had to apply the following patch to be able to compile on
an alpha with DU 4.0E:
###############################################
--- ./src/main/gram.y.mkString-patch Tue Nov 23 12:16:29 1999
+++ ./src/main/gram.y Tue Nov 23 12:16:59 1999
@@ -56,7 +56,8 @@
SEXP mkFloat(char *);
SEXP
2009 Nov 06
1
issues with SSOAP when wsdl has ComplexTypes
I recently started trying R and SSOAP and was able to successfully try a "hello
world" service. I am now trying to get a more complicated interface to work with
SSOAP and so far failed miserably at that and so need any help I can
get from here.
The service I am attaching is a prototype for a full service that would
take information to identify a data source and a query to run and
return
2007 Sep 21
1
Weird data from evalJSON
I am trying to have prototype perform a request and return to me a
javascript object representing the json string returned by the
request. I want to iterate over the contents to print each object in
the json string. The value of transport.reponseText in onSuccess is
what I would expect. But once I try to perform evalJSON() on this
text it gives me a bunch of extra function()s when i try to
2008 Nov 03
1
qr() and Gram-Schmidt
Hi,
Why the qr() produces a negative Q compared with Gram-Schmidt? (note
example below, except Q[2,3])
Here is an example, I calculate the Q by Gram-Schmidt process and
compare the output with qr.Q()
a <- c(1,0,1)
b <- c(1,0,0)
c <- c(2,1,0)
x <- matrix(c(a,b,c),3,3)
##########################
# Gram-Schmidt
##########################
A <- matrix(a,3,1)
q1 <-
2010 Jun 08
1
LumenVox *.gram reload
I just made a change to one of my *.gram files for my LumenVox IVR. I was just wondering if anyone knows the command in Asterisk to reload the .gram files.
Thanks for your help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100608/22a0fc65/attachment.htm
2017 Mar 16
4
Support for user defined unary functions
R has long supported user defined binary (infix) functions, defined
with `%fun%`. A one line change [1] to R's grammar allows users to
define unary (prefix) functions in the same manner.
`%chr%` <- function(x) as.character(x)
`%identical%` <- function(x, y) identical(x, y)
%chr% 100
#> [1] "100"
%chr% 100 %identical% "100"
#> [1] TRUE
2004 Jul 29
2
Parsing multi-line strings. Bug? Feature?
I have an S-Plus library that I would like to port to R. The library
sends a mix of static and dynamic output to an html file. For example
cat("
...
Big block of HTML formatting code
...
")
cat(dat())
cat("
More static text
")
With S-Plus I can just cut and paste HTML code from other files into my
S-Plus script file. This makes maintenance of the script fairly easy.
The
1999 May 17
1
minor installation problems
Hello,
I just finished installing R-0.64.1 on my linux machine (using kernel
2.0.36 under red hat 5.2, and
gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release)
)
The two problems I had:
1. ./configure --with-readline --with-x --prefix=/usr/local
ran to a point, then gave up with
...
checking return type of signal handlers... void
checking for working const... yes
1999 May 17
1
minor installation problems
Hello,
I just finished installing R-0.64.1 on my linux machine (using kernel
2.0.36 under red hat 5.2, and
gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release)
)
The two problems I had:
1. ./configure --with-readline --with-x --prefix=/usr/local
ran to a point, then gave up with
...
checking return type of signal handlers... void
checking for working const... yes
2003 Sep 01
1
Gram-Schmidt orthonormal factorization
Hi:
Does R have a function as gsorth is SAS, that perform a the Gram-Schmidt
orthonormal factorization of the m ?n matrix A, where m is greater than or
equal to n? That is, the GSORTH subroutine in SAS computes the
column-orthonormal m ?n matrix P and the upper triangular n ?n matrix T such
that A = P*T.
or any other version of Gram-Schmidt orthonormal factorization?
I search the help, but I
2017 Mar 16
2
Support for user defined unary functions
Gabe,
The unary functions have the same precedence as normal SPECIALS
(although the new unary forms take precedence over binary SPECIALS).
So they are lower precedence than unary + and -. Yes, both of your
examples are valid with this patch, here are the results and quoted
forms to see the precedence.
`%chr%` <- function(x) as.character(x)
`%identical%` <- function(x, y)
1999 Nov 26
2
compiling R-0.90.0 on alpha-dec-osf4.0
I am compiling R-0.90.0 on alpha-dec-osf4.0 and it stops by giving the
following message:
cc: Error: ../../../R/src/main/gram.y, line 1365: In this declaration, parameter 1 has a different type than specified in an earlier declaration of this function.
SEXP mkString(const char *s)
-----^
cc: Error: ../../../R/src/main/gram.y, line 1365: In this declaration, the type of "mkString" is not
1999 Nov 26
2
compiling R-0.90.0 on alpha-dec-osf4.0
I am compiling R-0.90.0 on alpha-dec-osf4.0 and it stops by giving the
following message:
cc: Error: ../../../R/src/main/gram.y, line 1365: In this declaration, parameter 1 has a different type than specified in an earlier declaration of this function.
SEXP mkString(const char *s)
-----^
cc: Error: ../../../R/src/main/gram.y, line 1365: In this declaration, the type of "mkString" is not
2009 Jun 13
2
How to write loop
Dear all,
I want to do the following process as a loop ( to run
automatically with dimension of X, here 50). How can I do that? Your
cooments will be highly appreciable.
Alex
*# Code:*
library(lars)
library(chemometrics)
X<-matrix(rnorm(2500),ncol=50)
dim(X)
# [1] 50 50
X1<-X[,2:dim(X)[2]] # I have taken out first column
dim(X1)
#[1] 50 49
X2<-X1[2:dim(X1)[1],] #
2009 Sep 22
2
cannot build R-devel (>= r49747)
Hello,
I've tried several times yesterday to build R-devel and I consistently
get this error when I "make" :
mkdir -p -- ../../../library/base/R
make[3]: Leaving directory `/tmp/R-devel/src/library/profile'
make[3]: Entering directory `/tmp/R-devel/src/library/base'
building package 'base'
make[4]: Entering directory `/tmp/R-devel/src/library/base'
mkdir -p --
2020 Jan 10
1
Operator precedence of =, <- and ?
The documentation (help("Syntax")) gives the operator precedence of the
assignment operators and help, from highest to lowest, as:
?<- <<-? assignment (right to left)
?=? assignment (right to left)
??? help (unary and binary)
If I understand correctly this implies that `a = b ? c` and `a <- b ? c`
should parse
2004 Jul 06
1
Wrong object type produced - LANGSXP should be LISTSXP (PR#7055)
Full_Name: David Bauer
Version: 1.9
OS: Linux
Submission from: (NULL) (160.91.245.8)
In the file gram.y, the xxsubscript function generates a LANGSXP with another
LANGSXP as its CDR. I believe that this is a mistake and that the second
LANGSXP should be a LISTSXP. The inputs a1, a3 are parameters to the subscript
function (a2), and as such they should be in a dotted-pair list.
David Bauer
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)
2006 Sep 08
2
Complete documentation gram.y ??
Hi everybody,
Does anybody know where I can find documentation about
file gram.y?. What I need to do is related to the
parse tree. I need the parse tree of a R user defined
function for being used by a c++ function. Briefly, I
have a C++ function that is used to generate random
numbers from a specified objective function and I want
to use R just to verified the sintaxis of the function
and I