Displaying 20 results from an estimated 7000 matches similar to: "A doubt about substitute() after delayedAssign()"
2013 May 16
3
Substitute / delayedAssign (was: Substitute unaware when promise objects are evaluated)
Duncan, Thank you for the clarification on how delayedAssign works. Should R-level interfaces to promise objects ever become available, I expect they would at time come in handy.
On the subject of substitute and delayedAssign, I do have a follow-up question for the list. I'm trying to convert a named list of expression objects into an environment of promise objects. After conversion, each
2007 Feb 13
1
question on docs for delayedAssign and substitute
The help files for delayedAssign and substitute both say that
substitute() can be used to see the expression associated with a
promise. However, I can't see how to do that. When I try the example
in help file for delayedAssign I don't see substitute() extracting the
promise, e.g.:
> msg <- "old"
> delayedAssign("x", msg)
> msg <-
2004 Oct 16
3
Lazy loading... advices
Hello,
I am looking for more information about lazy loading introduced in R 2.0.0.
Doing
?lazyLoad
I got some and there is a 'see also' section that points to
'makeLazyLoading'... But I cannot reach this page.
My problem is: I recompiled a library that uses a lot of functions from
other libraries (of course I can give details if needed). I load it in my
computer: library(svGUI),
2007 Jul 12
0
[Fwd: Re: How to activate the R commands in SciViews]
Well.. plans are there from a long time to rewrite SciViews completely
and make it platform independent (to work on Linux/Unix and MacOS X, as
well as Windows). I have done some work in this direction when time
permitted, but I am pretty busy with other work. During the holidays, I
will continue to work in this direction. I will try to package a first
running version of SciViews compatible with
2006 Mar 15
1
Additional arguments in S3 method produces a warning
Hello,
I just notice this:
> x <- c(1:4,0:5, 4, 11)
> library(pastecs)
Loading required package: boot
> tp <- turnpoints(x)
> extract(tp, no.tp = FALSE, peak = TRUE, pit = FALSE)
[1] FALSE FALSE FALSE TRUE FALSE FALSE FALSE FALSE FALSE TRUE FALSE
FALSE
Warning message:
arguments after the first two are ignored in: UseMethod("extract", e, n,
...)
>
2004 Apr 16
2
barplot() does not draw bars correctly in R 1.9.0 (PR#6776)
Bars are not stacked, but superimposed. This happens even with the first
example of barplot:
tN <- table(Ni <- rpois(100, lambda=5))
r <- barplot(tN, col='gray')
--please do not edit the information below--
Version:
platform = i386-pc-mingw32
arch = i386
os = mingw32
system = i386, mingw32
status =
major = 1
minor = 9.0
year = 2004
month = 04
day = 12
2009 Aug 27
1
[Fwd: Re: Video demo of using svSocket with data.table]
Forwarded to R-Help, because I think it could interest people following
this thread. Clearly, RServe and svSocket have different goals and very
little overlap.
Best,
Philippe
-------- Original Message --------
Subject: Re: Video demo of using svSocket with data.table
Date: Wed, 26 Aug 2009 20:34:19 +0100
From: Matthew Dowle <mdowle at mdowle.plus.com>
Reply-To: Matthew Dowle
2004 Dec 16
2
Detecting incomplete commands
Hello,
I need a similar behaviour as with the prompt: asking to complete incomplete
R command with eval(parse(text = ....))
Is it a way to make the difference between an illegal and an incomplete R
command in a string?
For instance:
> parse(text="ls()")
expression(ls())
This is fine!
> parse(text="ls(")
Error in parse(file, n, text, prompt) : parse error
This is an
PhD & post-doc positions available on Open source software evolution studies (incl. the R ecosystem)
2013 Aug 26
1
PhD & post-doc positions available on Open source software evolution studies (incl. the R ecosystem)
Dear R-Sig-Jobs members,
A PhD position is available at the COMPLEXYS Research Institute of the University of Mons (UMONS),
Belgium (http://www.complexsystems.be/). The PhD position is part of a joint research project on
"Ecological Studies of Open Source Software Ecosystems (ECOS)". This interdisciplinary project
between biology and computer science aims to use software repository
2006 Jun 18
1
R Wiki: how useful for developers?
Hello all R developers,
I just send the official annoucement of the R Wiki at
http://wiki.r-project.org (was also officially annouced at useR!2006). I
would like to insist here on the aspects of the Wiki that could be of
particular interest for you, as R developer:
1) The 'R documentation' section is dedicated to hold the latest
"wikified" version of all Rd files (base,
2010 Aug 15
2
as.logical(factor) behaviour
Hello,
According to ?as.logical:
"as.logical attempts to coerce its argument to be of logical type. For
factors, this uses the levels (labels)."
However,
> as.logical(factor(c("FALSE", "TRUE")))
[1] TRUE TRUE
Shouldn't it be the same as:
> as.logical(levels(factor(c("FALSE", "TRUE"))))
[1] FALSE TRUE
according to the
2012 Jan 30
4
replacing characters in matrix. substitute, delayedAssign, huh?
A user question today has me stumped. Can you advise me, please?
User wants a matrix that has some numbers, some variables, possibly
even some function names. So that has to be a character matrix.
Consider:
> BM <- matrix("0.1", 5, 5)
Use data.entry(BM) or similar to set some to more abstract values.
> BM[3,1] <- "a"
> BM[4,2] <- "b"
>
2004 Apr 22
1
Lyapunov exponent?
Hello,
Does anybody know if there is somewhere in R a function to calculate the
Lyapunov exponent in a time series?
Thanks,
Philippe Grosjean
.......................................................<??}))><....
) ) ) ) )
( ( ( ( ( Prof. Philippe Grosjean
\ ___ )
\/ECO\ ( Numerical Ecology of Aquatic Systems
/\___/ ) Mons-Hainaut University, Pentagone
/ ___ /( 8, Av. du
2007 Jul 06
1
Hook for running a function before evaluation
Hello,
I like much addTaskCallback() and friends. However, there are situations
were we would like to have a function run BEFORE, not after every
top-level tasks. I think specifically to reset options(width = ) to
accommodate to the current width of the console, using something like:
options(width = system("tput cols"))
I am sure there are many other situations where this could be
2007 Sep 19
3
delayedAssign
The last two lines of example(delayedAssign) give this:
> e <- (function(x, y = 1, z) environment())(1+2, "y", {cat(" HO! "); pi+2})
> (le <- as.list(e)) # evaluates the promises
$x
<promise: 0x032b31f8>
$y
<promise: 0x032b3230>
$z
<promise: 0x032b3268>
which contrary to the comment appears unevaluated. Is the comment
wrong or is it supposed to
2004 Apr 22
1
New version of benchmark comparing R with other software
Hello,
Thanks to Douglas Bates, there is now a new benchmark suite (version 2.3)
which is compatible with R 1.9.0 and the recent Matrix library (0.8-1 or
above). You find it at http://www.sciviews.org/other/benchmark.htm. It
compares R 1.9.0 under Windows with:
S-PLUS 6.5, Matlab 6.0, O-Matrix 5.6, Octave 2.1.42, Scilab 2.7 and Ox 3.30.
In short, R in its version 1.9.0 and with the new Matrix
2005 Jun 10
1
Question about .Rd syntax
Hello all,
In one of my packages, I have the following warning with R-devel, but no
problems with R 2.1.0, or R patched:
** checking Rd \usage sections ... WARNING
Bad \usage lines found in documentation object 'guiStart':
guiStart(gui = "\"
Functions with \usage entries need to have the appropriate \alias entries,
and all their arguments documented.
The \usage entries
2009 Apr 09
6
Cross-platforms solution to export R graphs
Hello Rusers,
I have worked on a R Wiki page for solutions in exporting R graphs,
especially, the often-asked questions:
- How can I export R graphs in vectorized format (EMF) for inclusion in
MS Word or OpenOffice outside of Windows?
- What is the best solution(s) for post-editing/annotating R graphs.
The page is at:
http://wiki.r-project.org/rwiki/doku.php?id=tips:graphics-misc:export.
I
2005 Dec 09
2
HTML search & Firefox
Hello,
Sorry if this question was already asked (I though it was... but did not
found the exact answer in the archives).
I use R 2.2.0 and just updated to Firefox 1.5 (note that I already got
the same result with Firefox 1.x.x) under Win XP sp2 US (full details of
my config hereunder). When I try to use the HTML help search page, I can
make a search: the message 'Applet SearchEngine
2004 Oct 17
2
Errors while compiling packages with namespace?
Hello,
I try to set up namespaces for packages. It is fine for several of them,
except one whose compilation fails (under Windows XP & R 2.0.0):
---------- Making package svViews ------------
adding build stamp to DESCRIPTION
installing NAMESPACE file and metadata
Error in parse(file, n, text, prompt) : syntax error on line 21
Execution halted
make[2]: *** [nmspace] Error 1
make[1]: ***