Is there some concrete example of your “many workflows don’t even make much
sense without pipes nowadays” comment?
I don’t think I’m opposed to pipes in the absolute, but as I am now deep
into my second decade of using R I’ve done just fine without them. As I
would guess have the vast majority of
Another really great tool, leveraging Simon's incredible work with Rserve,
is to use pyRserve. Combined with Flask as a web framework you can do
quite a bit with very minimal code.
http://flask.pocoo.org/
http://pypi.python.org/pypi/pyRserve/
HTH
Jeff
On Sun, Feb 17, 2013 at 12:10 PM, Simon
Happy 2013, Day 2.
I can't seem to figure out why parent.frame() works differently depending
on whether it is a formal/default argument or a passed argument.
# code: basic setup
tmp - tempfile()
A - 101
save(A,file=tmp);rm(A)
# these work as expected, loading into the parent of the
Happy 2013!
Can someone with more knowledge of edge case scoping/eval rules explain
what is happening below? Happens in all the versions of R I have on hand.
Behavior itself is confusing, but ?as.environment also provides no clue.
The term used in that doc is 'search list', which is ambiguous,
, and I'm glad I wasn't just
missing/misreading the primary docs.
Best,
Jeff
On Tue, Jan 1, 2013 at 4:21 PM, Duncan Murdoch murdoch.dun...@gmail.comwrote:
On 13-01-01 4:35 PM, Jeff Ryan wrote:
Happy 2013!
Can someone with more knowledge of edge case scoping/eval rules explain
what is happening
Refreshing the memory on performance:
http://r.789695.n4.nabble.com/reduce-limit-number-of-arguments-in-methods-cbind-td921600.html#a921601
My issue had been resolved by a more careful approach taken by timeSeries.
The other option is wholesale deprecation of S4 ... but I won't start
that
print(x) in print.bar is calling print.bar again.
You need to do something like print(unclass(x))
HTH
Jeff
On Tue, Sep 11, 2012 at 9:53 AM, Basil Abou El-Komboz
basil.abou-el-kom...@stat.uni-muenchen.de wrote:
Dear useR's,
today I stumbled over an interesting phenomenon: First, I created a
There is no such tool to my knowledge, though the mmap package can do
very similar things. In fact, it will be able to do this exactly once
I apply a contributed patch to handle endianess.
The issue is that rds files are compressed by default, so directly
reading requires uncompressing, which
Any package can link to external DLLs. You'll need to make that an
explicit dependency, have some configure script and distribute the
library somewhere else, but many packages on CRAN already do this.
My RBerkeley uses a user installed Oracle Berkeley DB that is linked
to at configure time, of
library(pwned)?
On Wed, Aug 15, 2012 at 10:56 AM, Barry Rowlingson
b.rowling...@lancaster.ac.uk wrote:
On Wed, Aug 15, 2012 at 2:47 PM, Simon Urbanek
simon.urba...@r-project.org wrote:
... and moreover with the increasing adoption of ACL on unix and
non-existence of uid/gid on Windows this
A bit late and possibly tangential.
The mmap package has something called struct() which is really a row-wise array
of heterogenous columns.
As Simon and others have pointed out, R has no way to handle this natively, but
mmap does provide a very measurable performance gain by orienting rows
Does anyone from core have a comment on the implications for the R-project on
this:
http://www.theregister.co.uk/2011/10/07/unix_time_zone_database_destroyed/
Given the inclusion of the TZ database with R as well as the functionality used
by R, is this something that the FSF is looking at yet?
The .Call overhead isn't the issue. If you'd like some insight into what you
are doing wrong (and right), you need to provide code for the list to reproduce
your timings with.
This is outlined in the posting guide as well.
Best,
Jeff
On Jul 13, 2011, at 8:28 AM, asmahani
from ?seek
‘seek’ returns the current position (before any move), as a
(numeric) byte offset from the origin, if relevant, or ‘0’ if not.
Your string is nul terminated (9 bytes long). That would be the
current offset. If you only read one byte, you'd have to be more than
0 bytes offset.
Much of TZ-hell (I almost dare say all) has been sorted through in xts.
http://cran.r-project.org/web/packages/xts/index.html
Peruse the sources for inspiration or just take some comfort in that
you are not the only one ;-)
Jeff
On Fri, Feb 4, 2011 at 9:24 AM, Joris Meys jorism...@gmail.com
Patrick,
Take a look at all.vars to start with That will return the vars as
characters, from there you can use get to test/proceed.
all.vars(parse.tree)
[1] x
Best,
Jeff
On Fri, Feb 4, 2011 at 1:37 PM, Patrick Leyshock ngkbr...@gmail.com wrote:
Hello,
I'm trying to access an object,
Janko,
You don't mention if you are using S3 or S4. A small example would
make it easier to identify where your problem is.
Jeff
On Fri, Sep 3, 2010 at 4:44 AM, Janko Thyson
janko.thy...@ku-eichstaett.de wrote:
Dear list,
I've got the following problem:
In a package I'm trying to
Running as.character on a large POSIXct causes a segfault on my 2.11
(2010-04-22) install. Seems to crash at around 9e4 ... on OSX and Ubuntu at
least.
invisible(as.character(Sys.time()+1:7e4))
invisible(as.character(Sys.time()+1:8e4))
invisible(as.character(Sys.time()+1:9e4))
Error: segfault
This has been fixed for a while in R-patched. The 2.11.1 release on Monday
should be fine.
Apparently people aren't running the betas/release candidates. You really
should run the test versions to flush out bugs. If you'd run the
pre-release versions of 2.11.0, this bug would likely have
This isn't like a local variable though, since any function above the
baseenv() in the search path will also not be found.
f
function(a) { rnorm(b) }
environment: base
f()
Error in f() : could not find function rnorm
Jeff
On Fri, May 14, 2010 at 9:20 AM, Hadley Wickham had...@rice.edu wrote:
I am not a standards expert, but the notation here seems incorrect to me:
gc()
used (Mb) gc trigger (Mb) max used (Mb)
Ncells 138668 7.5 650970 34.8 492193 26.3
Vcells 6668566 50.9 18582019 141.8 17001419 129.8
In the IEEE 1541-2002 document (
Providing the wrapper would allow for both performance as well as
user-simplicity.
x[RANGE(1,1e6)] and x[1:1e6] could both be handled internally, where:
RANGE - function(from,to) {
structure(seq(from,to), class=RANGE)
}
Just testing for a 'RANGE' object in your [. method would let the
Hi Ross,
The quantmod package makes available routines from a variety of
contributed packages, but gets around your issues with a bit of, um,
trickery.
Take a look here (unless your name is Kurt ;-) ):
One critical aspect to this is the fact that RcppTemplate seems to
have been where the Rcpp work moved to _before_ abandoning the Rcpp
project.
http://cran.r-project.org/src/contrib/Archive/RcppTemplate/
So the 'namespace' of Rcpp was left with seemingly no public intention
of picking it up.
This is fantastically off-topic, and has nothing to do with *R*.
Out of courtesy to this list, the subscribers, and future readers,
please take this off-list where it belongs.
Jeff
On Tue, Dec 22, 2009 at 11:27 PM, Dominick Samperi
djsamp...@earthlink.net wrote:
Stavros Macrakis wrote:
That
While I think download statistics are potentially interesting for
developers, done incorrectly it can very likely damage the community.
A basic data reporting problem, with all of the caveats attached.
This information has also been readily available from the main CRAN
mirror for years:
The reason is in the ?strptime under value:
'strptime' turns character representations into an object of class
'POSIXlt'. The timezone is used to set the 'isdst' component
and to set the 'tzone' attribute if 'tz != '.
And POSIXlt is a list of length 9.
HTH
Jeff
On Sun, Aug 9, 2009
Adam,
It seems that your attachment didn't make it through.
That aside, my experience with strange errors like those (random type
not implemented ones) has been that you may be looking at a memory
problem on you machine. Given that you can't replicate on another
platform (and the .csv file
This has been discussed before:
http://www.nabble.com/Dynamic-linking-to-binary-code-from-other-packages---td20167535.html#a20474561
Take a look at 'xts' on cran, or R-forge. Specifically:
be
much simpler. Also a bit more dangerous of course, since function
prototypes are not being exported via a header.
Terry T
On Wed, 2009-08-05 at 11:54 -0500, Jeff Ryan wrote:
This has been discussed before:
http://www.nabble.com/Dynamic-linking-to-binary-code-from-other-packages
The biggest help would come by not pretending to be Albert Einstein.
hTh,
Jeff
On Fri, Jul 24, 2009 at 1:11 AM, Albert EINstEINsateeshvar...@gmail.com wrote:
Hi everybody,
Actually, we know that If we create a dataset in R ,after closing the
session the dataset automatically is closed. I
in R (w.r.t Windows - as *nix works
fine) could provide some much needed insight.
Best,
Jeff Ryan
On Mon, May 18, 2009 at 12:40 PM, Jeff Ryan jeff.a.r...@gmail.com wrote:
R-devel:
I am encountering a consistency issue using socketConnection and
readBin with *non-blocking* connections on Unix
could look at its source code in case it brings anything to mind.
On Mon, May 18, 2009 at 1:40 PM, Jeff Ryan jeff.a.r...@gmail.com wrote:
R-devel:
I am encountering a consistency issue using socketConnection and
readBin with *non-blocking* connections on Unix and Windows XP (no
Vista to test
# C PROGRAM #
#include time.h
#include stdio.h
/*
code modified from:
http://www.opengroup.org/onlinepubs/009695399/functions/strptime.html
by Jeff Ryan
*/
struct tm tm;
time_t t;
int main()
{
char DATE[] = 1969-12-31 23:59:59;
printf(Date as tm struct (POSIXlt):%s\n, DATE
A quick comment on two subjects:
First to get the line # from the command line:
cat pkg/R/* all.R
wc all.R
vim +LINE all.R (or pick you favorite method here...)
From there it should be easy enough to get context. At least enough
to grep back into the R directory.
Also, the use of unit-tests
I think the /tmp file gets removed:
ERROR: lazy loading failed for package 'xts'
** Removing '/private/tmp/Rinst625532301/xts'
ERROR
Installation failed.
Removing '/tmp/Rinst625532301'
At least it seems to when I run R CMD from the shell.
Yes, there are several options for not distributing
Never used, but I seem to recall that this was good for that:
http://en.wikipedia.org/wiki/Xargs
Jeff
On Tue, Dec 9, 2008 at 3:13 PM, Whit Armstrong [EMAIL PROTECTED] wrote:
Since, gcc was using upwards of 2gb of ram to compile my package, I
just split all the functions into individual files.
My 2c:
The real issue for me is that this approach to handling S4 objects by
altering R functions for the worse is incorrect. (by calling
bind_activation)
m - matrix(1:2e6L) # 2 million obs
system.time(cbind(m,m))
user system elapsed
0.027 0.017 0.044
methods:::bind_activation(TRUE)
You are receiving no reply to your request as you are asking a list
for R package and core developers about a single package (1 of 1600+
on CRAN alone).
1) You should first try everything possible yourself to fix the
problem, AND show your work... (as per posting rules)
2) Then contact the
Charles,
I've looked through the Writing R Extensions manual, and can't find
this documented very clearly. A previous question to the list gave me
the very kind response pasted below. I've looked at the suggested
examples (lme4 using C functions from Matrix).
It isn't really clearly
Marcel,
If you are writing the C code from scratch, take a look at either
.Call or .External, as both make no copies of the input objects, and
require no explicit conversion to the underlying storage type
(numeric/integer/etc) within the function call.
An even greater benefit is that you will
Or something along the lines of:
Suggests: RGtk2
f - function (x, ...)
{
stopifnot(package:RGtk2 %in% search() || require(RGtk2, quietly = TRUE))
# do Rgtk2 stuff here
}
Jeff
On Thu, Oct 30, 2008 at 9:15 AM, Martin Maechler
[EMAIL PROTECTED] wrote:
FA == Felix Andrews [EMAIL
If you are looking for examples of handling dates/times (specifically
POSIXct) within C code, the dev branch of xts has quite a bit of code
now.
http://r-forge.r-project.org/plugins/scmsvn/viewcvs.php/dev/pkg/src/?root=xts
Assigning the class (or any attribute) within the C code will be much
This is a concern of the package maintainer. Nothing to do with
R-devel or R-bugs.
See the Rmetrics site or fSeries package details for their contact information.
Jeff
On Fri, Sep 5, 2008 at 10:05 AM, [EMAIL PROTECTED] wrote:
Full_Name: Robert Iquiapaza
Version: 2.7.2
OS: Vista
Submission
A combination of RUnit from CRAN and .Rbuildignore provide a workable
solution for the 'xts' package I work on, though this obviously
removes the tests from the distributed code.
http://cran.r-project.org/web/packages/RUnit/index.html
--and--
YOU can fix the problem : )
Try:
identical(76079320.32 + 21374.27 + 7630.04 + 28432.47,76136757.1)
[1] TRUE
identical(76079320.32 + 21374.27 + 7630.04 + 28432.47,76136757)
[1] FALSE
options(digits=10)
76079320.32 + 21374.27 + 7630.04 + 28432.47
[1] 76136757.1
sessionInfo()
R version
will undoubtedly cost many hours of debugging
across all packages/users.
Thank you for your consideration,
Jeff Ryan
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
47 matches
Mail list logo