Displaying 20 results from an estimated 110 matches similar to: "mb_m buffer not cleared if parseEval fails"
2017 May 09
3
R-3.3.3/R-3.4.0 change in sys.call(sys.parent())
Some formula methods for S3 generic functions use the idiom
returnValue$call <- sys.call(sys.parent())
to show how to recreate the returned object or to use as a label on a
plot. It is often followed by
returnValue$call[[1]] <- quote(myName)
E.g., I see it in packages "latticeExtra" and "leaps", and I suspect it
used in "lattice" as well.
This idiom
2010 Sep 28
1
How to convert SEXP to double
Hello All,
A simple question.
I get some return from the R in my C++ program (via Rcpp package). The
result come, as SEXP and it should be a simple numeric variable.
How to convert it to double?
The code, what i use:
stringstream ss;
ss << "p <- predict(fit_ar11, n.ahead = 2, doplot=FALSE);"
<< "p$pred[1]";
SEXP ans;
int iRet =
2017 May 11
1
R-3.3.3/R-3.4.0 change in sys.call(sys.parent())
Here is a case where the current scheme fails:
> with(datasets::mtcars, xyplot(mpg~wt|gear)$call)
xyplot(substitute(expr), data, enclos = parent.frame())
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Thu, May 11, 2017 at 1:09 AM, Deepayan Sarkar <deepayan.sarkar at gmail.com>
wrote:
> On Wed, May 10, 2017 at 2:36 AM, William Dunlap via R-devel
> <r-devel at
2003 Jun 08
1
Need help on data frame
Dear Sir/Madam,
I am new in R.I have data corresponding to every day.
Problem is that there are some gap i.e. observation
couldn't be done on some particular day.
I want to place this data frame like exact data frame
(every year it will change, Feb 28 or feb29)
Maybe I need to make one coulmn of date (for each
year, say this dataframe 'frame1'), then I need to
place data set on
2011 Mar 06
1
Plot and curve inside C++
Dear All,
I would like to use
- plot,
- curve
inside a C++ program. What R package do you recommend? Rcpp?
Thanks in advance,
Paul
2014 Sep 18
1
difference between install from source and install from repositories
Hi,
What is the difference between the R installation from source and the R
installation from ubuntu repositories. Specifically when I install
R-3.1.1 on ubuntu 14.04 from sources ldflags and CXXFLAGS are different
that those from the installation from a repo.
Installation from sources:
R CMD config --ldflags
-Wl,--export-dynamic -fopenmp -L/home/prana/prana_R/third-party/install/lib/R/lib
2009 Sep 29
3
How do I access class slots from C?
Hi
I'm trying to implement something similar to the following R snippet using
C. I seem to have hit the wall on accessing class slots using C.
library(fPortfolio)
lppData <- 100 * LPP2005.RET[, 1:6]
ewSpec <- portfolioSpec()
nAssets <- ncol(lppData)
setWeights(ewSpec) <- rep(1/nAssets, times = nAssets)
ewPortfolio <- feasiblePortfolio(
data = lppData,
spec = ewSpec,
2017 May 11
0
R-3.3.3/R-3.4.0 change in sys.call(sys.parent())
On Wed, May 10, 2017 at 2:36 AM, William Dunlap via R-devel
<r-devel at r-project.org> wrote:
> Some formula methods for S3 generic functions use the idiom
> returnValue$call <- sys.call(sys.parent())
> to show how to recreate the returned object or to use as a label on a
> plot. It is often followed by
> returnValue$call[[1]] <- quote(myName)
> E.g., I see
2005 Mar 04
1
R-2.01 and RSPerl-0.6.2
Hi,
I am somewhat new to R and RSPerl, but I think this particular problem
has to do with RSPerl and so I am not sure if this is the right forum
to ask for help. Nevertheless I am quite sure that many of you would
have used RSPerl with R.
My hardware platform is a Sun/Solaris V440 server running Solaris 9
operating system I use the gcc-3.4.0 compiler to compile R without any
problems. My
2010 Nov 29
4
Error heroku: App Crashed
Hi ,
i developed a small application(which contails only static pages) . I
tried to host that on heroku .just when everything was finished when
i
opened my site i,e http://floating-moon-89.heroku.com/ i am getting
an
error as App Crashed..where did it gone wrong? pls help...
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To
2011 Jan 26
2
Dealing with R list objects in C/C++
Hi,
I'd like to construct an R list object in C++, fill it with relevant data, and pass it to an R function which will return a different list object back. I have browsed through all the R manuals, and examples under tests/Embedding, but can't figure out the correct way. Below is my code snippet:
#include <Rinternals.h>
// Rf_initEmbeddedR and other setups already performed
2008 May 24
1
RSPerl & OS X
Hi,
I'm wanting to call R from Perl via the RSPerl package. However I cannot
seem to install it on my Macbook (OS X Tiger - R 2.6 - Perl 5.8.6). I try to
install the source downloaded from the sigmahat website - but it seems to
fail - when I search my system for R.pm - I can't find it? Something looks
to be going wrong with the make bits?
Cheers
David M
----
$ R CMD INSTALL
2012 Oct 24
3
puppet facter variable substring
Hi
I have a serires of servers that their hostname (not FQDN) is built in the
same manner [header, 3 letters][collo, 4 letters][environment, 3
letters][number, 4 digits].
There''s no specific separator between each part of hostname. Is there way I
can extract the collo part of the hostname in puppet?
TIA
Paolo
--
You received this message because you are subscribed to the
2004 Jun 03
0
Agent Groups
Hi,
I am trying to implement agent groups where agents in a group answer calls
from a particular queue. If no agent is available from a group, the calls are
directed to agent(s) in another group.
Without groups, the calls are added to the queue and agents are called.
However, when I introduce the 'group' concept, it seems like the queue
application is not called. The calls are never
2010 Feb 20
1
how to create a SEXP which could be accessed in embedded R
Hi all,
I am not familiar with writing R extensions. In a C program, I want to create a SEXP and access it in embedded R. How to let the embedded engine know there's a new vector? For example, after creating a SEXP, parsing 'ls()' in embedded R and then evaluating, STRSXP returned will contain the name of the SEXP. Any help would be appreciated.
Regards,
Spiral
[[alternative HTML
2013 Jun 07
0
[Rcpp-devel] Setting the R random seed from Rcpp
This would be easier if base::set.seed() accepted a value of .Random.seed
instead of just a scalar integer or, new to R-3.0.0, NULL. If set.seed() returned the
previous value of .Random.seed (NULL if there was no previous value) things
might be even easier. People should not have to know where .Random.seed
is stored.
S+'s set.seed() accepts a value of .Random.seed but does not return the
2011 Mar 08
3
How to disable R's crash prompt
Dear R devel,
I have a C++ app that calls into embedded R to perform some analytic calculations. When my app encounters a segmentation fault, R always prints the following crash prompt and asks me to enter an action:
*** caught segfault ***
address 0x8, cause 'memory not mapped'
Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
2011 Jun 27
0
Errors when installing RSPerl-0.92
Hello,
I am having errors when I try to install RSPerl-0.92 under fedora 14.
I have the following rpms installed:
R-devel-2.13.0-1.fc14.x86_64
R-core-2.13.0-1.fc14.x86_64
perl-5.12.3-143.fc14.x86_64
perl-devel-5.12.3-143.fc14.x86_64
perl-ExtUtils-* (all of them from yum)
Now I get the following errors:
# R CMD INSTALL RSPerl_0.92-1.tar.gz
* installing to library ‘/usr/lib64/R/library’
*
2009 Jul 25
2
[RFC] patch 0/4: DRM MMIO accessor cleanup
Hi,
this is continuation for the MMIO accessor rewrite and cleanup.
I am currently running nv28 with these patches applied, but
I cannot test on PPC.
Please, review and comment. If the direction is good, I'll do the
same to INSTANCE_{RD,WR} as I did for nv_{rd,wr}32, and change
PRAMIN from drm_local_map to simple ioremap.
Can the same be done for channel specific mappings, that is
2010 May 17
0
Rcpp 0.8.0 on CRAN
===== Summary =====
Version 0.8.0 of the Rcpp package was released to CRAN today. This release
marks another milestone in the ongoing redesign of the package, and
underlying C++ library.
===== Overview =====
Rcpp is an R package and C++ library that facilitates integration of C++
code in R packages.
The package features a set of C++ classes (Rcpp::IntegerVector,
Rcpp::Function,