Displaying 20 results from an estimated 1000 matches similar to: "Evaluating R expresions from C"
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
2006 Sep 05
1
R object code
Hi!, I wonder to know if someone can explain me how I
can access R object code. Briefly, what I need to do
is: given a user defined function in R I want to
access its object code with C because I need evaluate
the function but using C.
Thanks in advance for any help.
Patricia.
___________________________________________________________
Do You Yahoo!?
La mejor conexi?n a Internet y
2006 Sep 28
1
eval(SEXP fn,SEXP rho) in C++ code
Hi r-devel,
I am working on a R extension. I am writing the
function in C++, and in my function it is required a R
function object from the user. This R function object
will be evaluated thousand of times in my C++ code. I
generated the shared library and I loaded it on R. I
did several experiments in order to compare the speed
of my compiled code vs the speed of the equivalent
interpreted code.
2011 Sep 01
2
Evaluate an expresion comming from string
Whats wrong here?
I was expecting 11 as the result...
Thanks in advance.
bench <- function(str,...) {
func <- function(x) x+10
expr <- list(...)[1]
str <- gsub("XXX",expr,str)
x <- as.call(gsub("\"","",str))
eval(x)
}
bench("func(XXX)", "1")
2007 Nov 20
0
smb signing is incompatible with share level security !
These are some of the error messages found in the logs from smb:
Nov 20 16:09:32 dell01 smbd[5787]: Denied connection from (0.0.0.0)
Nov 20 16:09:32 dell01 smbd[5787]: [2007/11/20 16:09:32, 0]
lib/util_sock.c:get_peer_addr(1225)
Nov 20 16:09:32 dell01 smbd[5787]: getpeername failed. Error was El otro
extremo de la conexi?n no est? conectado
Nov 20 16:09:32 dell01 smbd[5787]: Connection
2003 Aug 14
0
Problem joining NT 4 PDC
Hi!
I'm trying to use Winbind to authenticate users through a NT 4.0
Terminal Server (EINFANTIL) acting as the PDC of the domain
RED_EINFANTIL.
That's my smb.conf
[global]
winbind separator = +
winbind cache time = 10
template shell = /bin/bash
template homedir = /home/%U
winbind uid = 10000-20000
winbind gid = 10000-20000
2004 Nov 11
1
vpn with shortcuts?
Hi all,
There's long time I'm having problems with a vpn... I'd be glad
if somebody could check my current setup.
Our problem is we're having tinc-vpn shortcuts while we have no
bandwidth problem nither 'ssh' trouble.
I attached some log lines from both the "server" and the
"client".
Some ASCII art...
___ ___ ___
2014 Dec 16
0
[ANNOUNCE] nftables 0.4 release
Hi!
The Netfilter project proudly presents:
nftables 0.4
This release contains a lot of bug fixes and new features contained up
to the recent 3.18 kernel release (and some features coming up in the
yet unreleased 3.19-rc).
New features
============
* Add support for global ruleset operations (available since 3.18).
Get rid of all tables, chains, and rules in one go:
# nft
2018 Oct 05
2
Simple ways to test ssh tunnel
Hello List,
I'm not enterelly sure that I'm on the rist place to ask this question,
sorry if not.
The question is simple, *how to test simply a ssh tunnel ?*
I just want to make sure the the tunnel i'm opening is letting information
goes through it without problem, and I want to avoid any other point of
failure when testing.
for example let's say I run
ssh -L
2019 May 10
0
8000 security risk?
Hi Patricia,
On 5/10/19 2:48 PM, Patricia Moynihan wrote:
> Yes I meant HTTPS over HTTP, which yes, I’m differentiating by those
> port numbers. Thanks for clarifying! We have been streaming HTTP for a
> long time, but I am at a university and there is a lot of emphasis on
> security. I was never really sure what the certificate did for us in
> this case…but was attempting to
2003 Feb 08
3
to modify a matrix
Hi All.
I am quite a newbie to R.
This is a next basic question.
I have a matrix;
> x <- matrix(1:10.,5)
> x
[,1] [,2]
[1,] 1 6
[2,] 2 7
[3,] 3 8
[4,] 4 9
[5,] 5 10
I like to get a modified matrix as follows;
[,1] [,2]
[1,] 1 6
[2,] 2 7
[3,] 3 8 * 5 -> 40
[4,] 4 9
[5,] 5 10
The following expression does not work.
2004 May 16
0
rsync and SSL: gettig the patch working
Hi all,
I have applied the patch at http://metastatic.org/source/rsync-ssl.patch
to the rsync v2.6.2 tree, and have it installed between two hosts.
Unfortunately the patch contains no docs, so I have no idea whether I've
configured it correctly. Any attempt at making an rsync transfer bombs
out with the error:
[fma@chandler fma]$ rsync -a
--ssl-ca-certs=/usr/share/ssl/certs/caCert.pem
2013 Jan 08
4
Logical operator and lists
Hello R-Helpers,
I have a slight problem with the expresion data[data==""] <- NA which works
well for a data.frame. But now i must use the same for a list of
data.frames.
My idea is data[[]][data==""] but it don´t work.
Thanks!!
Dominic
[[alternative HTML version deleted]]
2009 Dec 07
3
Regular expression help
Hi there
I have a string like this i want to extract 9831019 from this string i used
a regular expresion \d+ by which i can only make it to see 7 and returns.
This type of number(9831019) appears in any part of the string and is
definitely more than 5 digits all the time and i want to give that as a
condition
UV7C11-F9-E1 MCS#9831019
MCS Lot #9512516"
how do i go abt it
Ramya
--
View
2013 Jan 31
2
evaluar una exprseion
Hola a todos,
Me gustaria saber como puedo evaluar / obtener el resultado guardado en un
objeto
cuando este se ejecuta. Quiero decir, el resultado de la siguiente
expresion:
> paste("res_UP_sep_dec_","16_17_18",sep="")
[1] "res_UP_sep_dec_16_17_18"
es un objeto (una lista) cuyo nombre es precisamente res_UP_sep_dec_16_17_18
>
2013 Dec 03
1
caracteres como argumentos
r-help-es,
en muchas situaciones me encuentro con la necesidad de pasar
el nobre de un objeto como argumento a una función:
for (i in 1:3)
cat(paste( "avglrss",i," <- ", "scan(\"","avgl",i,".rep","\"",",skip=7",")"
,sep=""))
en este ejemplo estoy creando objetos "avglrss1",
2009 Jul 31
1
asterisk 1.6 call forwarding
Dear All,
I'n trying to make a simple call forwarding, however I have small
problem when evaluating an expresion.
Here is my extensions.conf
...
; Unconditional Call Forward
exten => _#21*X.,1,Set(DB(CFIM/${CALLERID(num)})=${EXTEN:4})
exten => _#21*X.,2,Hangup()
exten => #21#,1,Set(ignored=${DB_DELETE(CFIM/${CALLERID(num)})})
exten => #21#,2,Hangup()
...
exten =>
2009 Dec 11
1
ANNOUNCE: New version of Activa TAPI driver
hello,
there is new version of the best open source TAPI driver for Asterisk -
Activa 1.6.1
* NEW: Asterisk 1.6 compatibility (partially sponsored by IPEX a.s. http://www.ipex.cz)
* NEW: FEATURE_CODES standardization for AgentACD integration login, logout, ready, notReady.
* NEW: ActivaTSP x64 version.
* New: Windows 2008 Server compatibility.
* CHANGE: Some performance optimization.
* FIX:
2007 Dec 07
1
Internal functions
I've complex problem and this's idealization of it:
v=1:10
fx<-function(x){
v[x]=v[x]*2}
fy<-function(y){
fx(y)}
for(i in 1:10){
fy(i)}
How to modife expresion (and only that):
{v[x]=v[x]^2}
to achive the redefinetion of the values of vector v, the result should
be: v=(1:10)*2. I think, that could be done with using of internal
functions, but I'm not the programmer.
2012 Oct 04
1
(no subject)
producing a multi-figure plot, i am try to add beta_1, beta_2,.. beta_9 to
ylab using expression or substitution, but cannot work out like
for (i in 1:9){
plot(seq(1/m, 1-1/m, 1/m), beta.q[,i], type="l", col=1,
ylim=range(beta.q),
xlab="quantile", ylab=expresion(beta[i]))
}
any suggestions will be greatly appreciated.
DL
[[alternative HTML version deleted]]