:
finalizerFunction - ## cleanup code
reg.finalizer(parent.env(), finalizerFunction)
-m
On Oct 26, 2014 11:03 PM, Henrik Bengtsson h...@biostat.ucsf.edu wrote:
On Sun, Oct 26, 2014 at 8:14 PM, Murat Tasan mmu...@gmail.com wrote:
Ah (again)!
Even with my fumbling presentation of the issue, you
I'm trying to help someone to troubleshoot possible OSX Yosemite
issues, but I've only got access to OSX ( 10.9) so I cannot check
myself.
When building/installing binary R packages, there are different
binaries depending on OSX version. For instance, CRAN provides
different binaries for 'OS X
On Mon, Oct 27, 2014 at 11:23 AM, Dan Tenenbaum dtene...@fredhutch.org wrote:
- Original Message -
From: Dan Tenenbaum dtene...@fredhutch.org
To: Henrik Bengtsson h...@biostat.ucsf.edu
Cc: R-devel r-devel@r-project.org
Sent: Monday, October 27, 2014 11:21:59 AM
Subject: Re: [Rd
On Mon, Oct 27, 2014 at 12:33 PM, Dan Tenenbaum dtene...@fredhutch.org wrote:
- Original Message -
From: Henrik Bengtsson h...@biostat.ucsf.edu
To: Dan Tenenbaum dtene...@fredhutch.org
Cc: R-devel r-devel@r-project.org
Sent: Monday, October 27, 2014 12:21:49 PM
Subject: Re: [Rd
Another 1000 packages were added to CRAN and this time in less than 12
months. Today (2014-10-29) on The Comprehensive R Archive Network
(CRAN) [1]:
Currently, the CRAN package repository features 6000 available packages.
Going from 5000 to 6000 packages took 355 days - which means that it's
on
On Nov 6, 2014 3:36 AM, Duncan Murdoch murdoch.dun...@gmail.com wrote:
On 06/11/2014, 5:57 AM, Peter Meissner wrote:
Dear Listeners,
... also I read the CRAN policies and tried to solve those questions
myself I feel very much in the need of good advise ...
I am currently finishing
On Wed, Nov 12, 2014 at 10:20 AM, Martin Morgan mtmor...@fredhutch.org wrote:
On 11/12/2014 05:36 AM, Zheng Da wrote:
Hello,
I wrote a system to perform data analysis in C++. Now I am integrating
it to R. I need to allocate memory for my own C++ data structures,
which can't be represented
I've meant to ask the following for several years now. I understand why:
foo - function(x, dim=dim) { dim }
foo(1)
Error in foo(1) :
promise already under evaluation: recursive default argument
reference or earlier problems?
gives an error, but why wouldn't/couldn't the following work?
Hi,
I'd like to list all package PkgA functions that another package PkgB
use via Depends or Imports (ignoring Suggests for simplicity). As
long as PkgB uses importFrom(PkgA, ...) it's just a matter of
parsing the NAMESPACE file or inspecting
asNamespace(PkgB)$.__NAMESPACE__.$imports. However,
wrote:
The best thing I have found is codetoolsBioC in the Bioconductor subversion
repository.
Best,
Kasper
On Fri, Nov 14, 2014 at 9:57 PM, Henrik Bengtsson h...@biostat.ucsf.edu
wrote:
Hi,
I'd like to list all package PkgA functions that another package PkgB
use via Depends or Imports
FYI, it might be useful to check if the bug also appears on R-devel as
well as on earlier versions of R. That might narrow down whether it
was introduced in a particular R version or not, which in turn would
be useful to whoever might try to tackle this problem. It might not
even be an R problem
On Sat, Nov 22, 2014 at 12:42 PM, Duncan Murdoch
murdoch.dun...@gmail.com wrote:
On 22/11/2014, 2:59 PM, Stuart Ambler wrote:
A colleague¹s R program behaved differently when I ran it, and we thought
we traced it probably to different results from string comparisons as
below, with different R
Could someone please confirm/refute that Rprof(...,
memory.profiling=TRUE) can also be used to profile memory allocation
done in a C function (src/*.c) that uses, e.g.
allocVector(INTSXP, n)
but also allocations such as
R_alloc(n, sizeof(int))
?
Modulo how R was built, does the answer
On Sat, Nov 15, 2014 at 1:47 AM, Duncan Murdoch
murdoch.dun...@gmail.com wrote:
On 14/11/2014, 9:06 PM, Henrik Bengtsson wrote:
I've meant to ask the following for several years now. I understand why:
foo - function(x, dim=dim) { dim }
foo(1)
Error in foo(1) :
promise already
On Sun, Nov 23, 2014 at 4:07 PM, Henrik Bengtsson h...@biostat.ucsf.edu wrote:
On Sat, Nov 15, 2014 at 1:47 AM, Duncan Murdoch
murdoch.dun...@gmail.com wrote:
On 14/11/2014, 9:06 PM, Henrik Bengtsson wrote:
I've meant to ask the following for several years now. I understand why:
foo
* this is package 'matrixStats' version '0.12.0'
* checking CRAN incoming feasibility ... NOTE
Maintainer: 'Henrik Bengtsson henr...@braju.com'
Possibly mis-spelled words in DESCRIPTION:
rowMedians (18:74)
rowRanks (18:92)
rowSds (18:111)
* checking package namespace information ... OK
...
Thanks
On Dec 9, 2014 6:38 AM, Apps Embedded apps.embed...@gmail.com wrote:
Hi,
We have published an Android app called R Console on the Play Store since
Décember 2013.
https://play.google.com/store/apps/details?id=com.appsopensource.R
SUGGESTION:
Would it make sense if install.packages() and friends always use an
ascii(*) encoding when parse():ing R package source code files?
I believe this should be safe, because R code files should be in ASCII
[http://en.wikipedia.org/wiki/ASCII] and only in source-code comments
you may use
On Thu, Dec 11, 2014 at 10:47 AM, Duncan Murdoch
murdoch.dun...@gmail.com wrote:
On 11/12/2014 12:59 PM, Henrik Bengtsson wrote:
SUGGESTION:
Would it make sense if install.packages() and friends always use an
ascii(*) encoding when parse():ing R package source code files?
I think
On Fri, Jan 2, 2015 at 9:02 AM, Gábor Csárdi csardi.ga...@gmail.com wrote:
Dear all,
I am trying to benchmark code that occasionally prints on the screen
and I want to
suppress the printing. Is there an idiom for this?
If I do
sink(tempfile)
microbenchmark(...)
sink()
then I'll be
Would it be possible to have the value of eval() preserve the
visibility of the value of the expression?
PROBLEM:
# Invisible
x - 1
# Visible
eval(x - 2)
[1] 2
TROUBLESHOOTING:
withVisible(x - 1)
$value
[1] 1
$visible
[1] FALSE
withVisible(eval(x - 2))
$value
[1] 2
$visible
[1] TRUE
Thanks for this.
Anyone know how I can find what those initial settings are from within
R? Do I need to parse/look at both environment variables R_NSIZE and
R_VSIZE and then commandArgs()?
/Henrik
On Tue, Jan 20, 2015 at 1:42 AM, Martin Maechler
maech...@stat.math.ethz.ch wrote:
Peter Haverty
On Thu, Jan 22, 2015 at 11:44 AM, luke-tier...@uiowa.edu wrote:
I'm not convinced that how to make :: faster is the right question. If
you are finding foo::bar being called often enough to matter to your
overall performance then to me the question is: why are you calling
foo::bar more than
On Thu, Jan 22, 2015 at 7:20 AM, Max Kuhn mxk...@gmail.com wrote:
I've had a lot of requests for additions to the reproducible research
task view that fall into a grey area (to me at least).
For example, roxygen2 is a tool that broadly enable reproducibility
but I see it more as a tool for
It works again using:
% R --version
R Under development (unstable) (2015-01-26 r67627) -- Unsuffered
Consequences
Copyright (C) 2015 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
/Henrik
On Mon, Jan 26, 2015 at 9:54 AM, John Fox j...@mcmaster.ca wrote:
In R, there's readline(), which is great because you can prompt the user, e.g.
ans - readline(Would you like to install Pandoc? [y/N]: )
without having to worry the message is intercepted by
capture.output(), sink() or similar (which is used by dynamic report
generators among other things).
, that's the spirit of my cmsg() below.
Hope this makes more sense now
Henrik
On Sun, Feb 1, 2015 at 11:13 AM, Henrik Bengtsson h...@biostat.ucsf.edu
wrote:
In R, there's readline(), which is great because you can prompt the user,
e.g.
ans - readline(Would you like to install Pandoc? [y
.
Thanks,
Henrik
Hadley
On Mon, Jan 26, 2015 at 12:53 PM, Henrik Bengtsson h...@biostat.ucsf.edu
wrote:
Hi, I got an interesting programming challenge:
How do you inspect an object which is assigned via delayedAssign() and
that throws an error as soon as it is touched (=the value
Compare:
quartz(); cat(Should this have generated an error instead?\n)
Warning message:
In quartz() : Quartz device is not available on this platform
Should this have generated an error instead?
to:
x11()
Error in .External2(C_X11, d$display, d$width, d$height, d$pointsize, :
unable to
On Sun, Feb 8, 2015 at 8:44 PM, Suharto Anggono Suharto Anggono via
R-devel r-devel@r-project.org wrote:
Sorry to intervene.
No, I'm very happy you intervened. You're comment is 100%
valid/correct making my wish moot.
Your explanation is very clear and nails it; one should use
See weightedMean() in the matrixStats package. It's optimized for
data type, speed and memory and implemented in native code so it can
avoid some of these intermediate copies. It's a few times faster than
weighted.mean[.default]();
library(matrixStats)
library(microbenchmark)
n - 5000
x -
On Fri, Feb 27, 2015 at 4:05 AM, Kirill Müller
kirill.muel...@ivt.baug.ethz.ch wrote:
Perhaps the R.rsp package by Henrik Bengtsson [1,2] is an option.
Cheers
Kirill
[1] http://cran.r-project.org/web/packages/R.rsp/index.html
[2] https://github.com/HenrikBengtsson/R.rsp
Yes, this use
On Apr 25, 2015 05:07, Prof J C Nash (U30A) nas...@uottawa.ca wrote:
How about allowing underscore? (I believe WRE is silent on this, and I
have not tried submitting a package with underscore in the title.) As I
pointed out in my OP, _optim()_ works. And we have the advantage that we
can
In Section 'Indexing by vectors' of 'R Language Definition'
(http://cran.r-project.org/doc/manuals/r-release/R-lang.html#Indexing-by-vectors)
it says:
Integer. All elements of i must have the same sign. If they are
positive, the elements of x with those index numbers are selected. If
i contains
Is there a way to refresh capabilities(X11) without restarting R
such that it reflects the enabling/disabling of X11?
BACKGROUND:
If I launch R with X11 server disabled (e.g. ssh -X / ssh -Y to remote
Linux but forgot to enable Xming on local Windows), then I get:
capabilities(X11)
X11
...@lynne.stat.math.ethz.ch wrote:
Henrik Bengtsson henrik.bengts...@ucsf.edu
on Mon, 4 May 2015 12:20:44 -0700 writes:
In Section 'Indexing by vectors' of 'R Language Definition'
(http://cran.r-project.org/doc/manuals/r-release/R-lang.html#Indexing-by-vectors
Calling library(..., quietly=TRUE) may still output:
Loading required package: other pkg
in some cases, e.g.
library(R.utils, quietly=TRUE)
Loading required package: R.methodsS3
[...]
I traced this to base:::.getRequiredPackages2(), which forgets to pass
'quietly' to an internal library()
On Sat, May 9, 2015 at 12:55 AM, peter dalgaard pda...@gmail.com wrote:
On 09 May 2015, at 02:53 , Henrik Bengtsson henrik.bengts...@ucsf.edu
wrote:
Hi,
I spotted what looks like another(*) mistake in 'R Language
Definition' on how subsetting should work. In Section 'Indexing
matrices
Hi,
I spotted what looks like another(*) mistake in 'R Language
Definition' on how subsetting should work. In Section 'Indexing
matrices and arrays'
[http://cran.r-project.org/doc/manuals/r-release/R-lang.html#Indexing-matrices-and-arrays]
one can read
Negative indices are not allowed in
When R aborts (core dumps), it outputs:
aborting ...
This message is rather generic and can be hard to track back to R
itself, i.e. it is not always clear whether it is R itself that
aborted or some other piece of code that caused the abort/core dump
and outputted that message.
May I suggest
On Fri, May 15, 2015 at 8:01 AM, Simon Urbanek
simon.urba...@r-project.org wrote:
On May 13, 2015, at 2:28 PM, Henrik Bengtsson henrik.bengts...@ucsf.edu
wrote:
While at it: 'Makevars' is an R invention (i.e. documentation of it
is only available through the R docs), correct? /Henrik
While at it: 'Makevars' is an R invention (i.e. documentation of it
is only available through the R docs), correct? /Henrik
On Wed, May 13, 2015 at 10:10 AM, Kevin Ushey kevinus...@gmail.com wrote:
One other solution that's only a little crazy: you could have a R
function within your package
On May 14, 2015 15:04, January Weiner january.wei...@gmail.com wrote:
Dear all,
I am writing a vignette that requires a file which I am not allowed to
distribute, but which the user can easily download manually. Moreover, it
is not possible to download this file automatically from R:
I've noticed that install.packages()
[https://svn.r-project.org/R/trunk/src/library/utils/R/packages.R] and
update.packages()
[https://svn.r-project.org/R/trunk/src/library/utils/R/packages2.R]
sometimes output to stdout and sometimes to stderr.
It looks like stderr is used (e.g. via cat()) when
Below is some further troubleshooting on this:
From code inspection this bug happens for only:
* for integer values
* when the first element is NA_integer_ and the second is not.
Examples:
# Numeric/doubles works as expected
cummax(c(NA_real_, 0, 1, 2, 3))
[1] NA NA NA NA NA
# It does not
overflows.
-y - c(x)[1 + 0L:(m - 1L) * (dim(x)[1L] + 1)]
-nms - dimnames(x)
+if (is.object(x)) x - c(x)
/Henrik
On Tue, May 12, 2015 at 8:24 PM, Henrik Bengtsson
henrik.bengts...@ucsf.edu wrote:
Along Luke's lines, would(n't) it be enough to look for existence
You probably already know, but you can at least work around it as:
Sys.which2 - function(cmd) {
stopifnot(length(cmd) == 1)
if (.Platform$OS.type == windows) {
suppressWarnings({
pathname - shell(sprintf(where %s 2 NUL, cmd), intern=TRUE)[1]
})
if (!is.na(pathname))
Along Luke's lines, would(n't) it be enough to look for existence of
attribute 'class' to decide whether to dispatch or not, i.e. if c() is
needed or not? Even without .subset(), there is a remarkable
improvement. I think it's worth condition the code on dispatch or
not. For example:
I've been there too. The clang compiler does useful validation and
troubleshooting of your code in addition to what you get with gcc. I
recommend installing/trying it as a complement to your default setup.
It has a -c option for Only run preprocess, compile, and assemble
steps allowing you do
On Sun, Jun 21, 2015 at 9:59 AM, Prof Brian Ripley
rip...@stats.ox.ac.uk wrote:
On 20/06/2015 22:21, Henrik Bengtsson wrote:
QUESTION:
Is it possible to query number of active jobs running after launching
them with parallel::mcparallel()?
For example, if I launch 3 jobs using:
library
QUESTION:
Is it possible to query number of active jobs running after launching
them with parallel::mcparallel()?
For example, if I launch 3 jobs using:
library(parallel)
f - lapply(1:3, FUN=mcparallel)
then I can inspect them as:
str(f)
List of 3
$ :List of 2
..$ pid: int 142225
..$
PROBLEM:
I'm getting error:
Error in order(matches$Position) : argument 1 is not a vector
Whenever I try to access a package's Code demos page via the link on
the package HTML index page.
SOME TROUBLESHOOTING:
Looking at for instance the 'stats' package. The Code demos URL
takes the form
Analogously to how S4 methods are declared in the code, cf.
methods::setMethod(), I'd find it more natural to also declare S3
methods in the code and note in the NAMESPACE. For example:
# S3 method summary() for class 'aov':
summary.aov - function(x, ...) {
# something
}
S3class(summary.aov)
Went ahead and did it directly, cf. PR #16432
(https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=16432). /H
On Wed, Jun 17, 2015 at 4:02 AM, Duncan Murdoch
murdoch.dun...@gmail.com wrote:
On 16/06/2015 4:20 PM, Henrik Bengtsson wrote:
PROBLEM:
I'm getting error:
Error in order(matches
You're not the first one, e.g.
https://stat.ethz.ch/pipermail/r-devel/2010-March/057029.html
https://stat.ethz.ch/pipermail/r-devel/2010-November/058981.html
(I was bitten by this in a resampling scheme where the set sampled
from was data driven).
Here's a simple solution - taken from
LDOUBLE double
#endif
So now I should rephrase my question: Is there away to avoid this
penalty when using 'long double'? Is this something the compiler can
be clever about, or is the only solution to not use 'long double'?
/Henrik
On Sun, May 31, 2015 at 5:02 PM, Henrik Bengtsson
henrik.bengts
I'm observing that base::sum(x, na.rm=FALSE) for typeof(x) == double
is much more time consuming when there are missing values versus when
there are not. I'm observing this on both Window and Linux, but it's
quite surprising to me. Currently, my main suspect is settings in on
how R was built.
On May 24, 2015 2:44 AM, Rainer M Krug rai...@krugs.de wrote:
Gábor Csárdi csardi.ga...@gmail.com writes:
Dear All,
[ I was wondering if this should have gone to the new mailing list.
Maybe. ]
As some of you maybe know from my earlier posts, I am building a simple
search engine for
On Tue, May 26, 2015 at 12:45 AM, Gábor Csárdi csardi.ga...@gmail.com wrote:
On Mon, May 25, 2015 at 8:28 PM, Simon Urbanek simon.urba...@r-project.org
wrote:
One issue I have with this is that it doesn't point to the original GitHub
repositories of the packages, so you end up with additional
Works for me on Windows 7. Also when I explicitly set 'method' to
internal, libcurl, curl, wininet and 'wget.
sessionInfo()
R version 3.2.2 beta (2015-08-04 r68843)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
locale:
[1]
Hi,
I was playing around with this idea earlier this year. This would
allow you to remove a variable with NAMED2 while still passing it's
value, e.g.
x1 - log(r(x1))
where the returned value/variable has NAMED=1. At first I was quite
excited about the results, but it turned out that it
In R-devel (2015-08-12 r69024), capture.output() incorrectly
duplicates the last line unless it ends with a newline. I don't see
this in R 3.2.2 RC (2015-08-13 r69049). It seems to have started
fairily recently; I spotted this yesterday after starting to get
errors in my R.utils check that use
On Fri, Aug 14, 2015 at 5:00 PM, Henrik Bengtsson
henrik.bengts...@ucsf.edu wrote:
On Windows there are a few 'pthreads' implementation, e.g.
pthreads-w32 and winpthreads
[
https://cran.r-project.org/doc/manuals/r-devel/R-exts.html#Using-pthreads
].
We're thinking of giving them a try
On Thu, Oct 22, 2015 at 3:48 PM, Paul Gilbert wrote:
>
>
> On 10/22/2015 03:55 PM, Duncan Murdoch wrote:
>>
>> I'm planning on adding some new WebGL functionality to the rgl package,
>> but it will pull in a very large number of dependencies. Since many
>> people won't need
On Nov 5, 2015 03:45, "Richard Cotton" wrote:
>
> I've just been trying to post-process some R-created heatmaps using
> Inkscape, but I can't get them to display correctly in that software.
>
> To reproduce:
>
> library(grid)
> r <- as.raster(matrix(runif(25), 5, 5))
>
Thanks Uwe and thanks Hadley. I ended up implementing:
## Emulates R internal findVar1mode() function
## https://svn.r-project.org/R/trunk/src/main/envir.c
where <- function(x, where=-1, envir=if (missing(frame)) { if (where <
0) parent.frame(-where) else as.environment(where) } else
Hi,
exists("foo", inherits=TRUE) check whether an object named "foo"
exists, and get("foo", inherits=TRUE) retrieves it. I'm looking for a
similar function to exists() that returns the environment where the
object "foo" exists, iff at all. If not found, NULL is returned.
Does that exist?
order as exists/get(..., envir, inherits=TRUE)
does it. getAnywhere() will search everything in any order. It's a
start though.
Cheers,
Henrik
>
> Best,
> Uwe
>
>
> On 10.10.2015 01:18, Henrik Bengtsson wrote:
>>
>> Hi,
>>
>> exists("foo", inh
When using Rscript -e , (mistakenly) putting --args in front of
-e causes an interactive R session to start that does not quit
automatically and that does not display a prompt. For example,
{hb}: Rscript --vanilla -e "0"
[1] 0
{hb}: Rscript --vanilla -e "0" --args
[1] 0
{hb}: Rscript --vanilla
On Mon, Sep 21, 2015 at 11:20 AM, Simon Urbanek
<simon.urba...@r-project.org> wrote:
>
> On Sep 20, 2015, at 3:06 PM, Henrik Bengtsson <henrik.bengts...@ucsf.edu>
> wrote:
>
>> Is there a missing value constant defined for R_xlen_t, cf. NA_INTEGER
>>
Is there a missing value constant defined for R_xlen_t, cf. NA_INTEGER
(== R_NaInt == INT_MIN) for int(eger)? If not, is it correct to
assume that missing values should be taken care/tested for before
coercing from int or double?
Thank you,
Henrik
__
I'm picking up this 5-year old thread.
1. About the four memory allocations without a stacktrace
I think the four memory allocations without a stacktrace reported by Rprofmem():
> Rprofmem(); x <- raw(2000); Rprofmem("")
> cat(readLines("Rprofmem.out", n=5, warn=FALSE), sep="\n")
192 :360 :360
On Fri, Jan 15, 2016 at 10:15 AM, Daniel Kaschek
wrote:
> Dear Martyn,
>
>
> On Fr, Jan 15, 2016 at 4:01 , Martyn Plummer wrote:
>>
>>
>> Alternatively, you may be able to control the maximum number of threads
>> by setting and exporting
If I recall it correctly, at least on Linux, rgl only needs X11 when
rgl.useNULL(FALSE). Is that correct? If so, I would say dependency
on X11 is optional and therefore you should be able to load the
package even without X11. Or is it that it still requires X11 libs
but not an X11 server?
My
Another 1000 packages were added to CRAN, which took less than 7
months. Today (February 29, 2017), the Comprehensive R Archive Network
(CRAN) [1] reports:
“Currently, the CRAN package repository features 8002 available packages.”
The rate with which new packages are added to CRAN is increasing.
Just checking in to see whether it is intended or not that assigning
new formals to a function/closure causes any attributes to be dropped:
EXAMPLE:
> fcn <- structure(function() {}, foo="foo", class=c("foo"))
> str(fcn)
function ()
- attr(*, "srcref")=Class 'srcref' atomic [1:8] 1 18 1 30 18
If of any help,
I can reproduce this (on Windows 7) back to at least R 3.0.3 but it's
not there in R 3.0.0. (I have *not* checked with R 3.0.1 and 3.0.2
which I don't have installed).
/Henrik
On Tue, Apr 5, 2016 at 8:23 AM, Duncan Murdoch wrote:
> Thanks, I'll track
I'm not an OS X user, but two things you might look into/help you troubleshoot:
1. Because you said it only happens when you try to overwrite an
existing PDF, could it be that there is another process holding onto
(=locking) the PDF file that you're trying to write to? For instance,
are you
# 8: 2009-09-10 2000 maticce
> ## 9: 2007-03-11 1000 cairoDevice
> ## 10: 2005-02-21500 micEcon
> ## 11: 2003-03-19250 polspline
>
> So including the archived packages in this report, 8K was actually
> reached at the time of useR! 2015 :)
>
> B
Isn't the problem in Qin's example that unloadNamespace("scde") only
unloads 'scde' but none of its package dependencies that were loaded
when 'scde' was loaded. For example:
$ R --vanilla
> ns0 <- loadedNamespaces()
> dlls0 <- getLoadedDLLs()
> packageDescription("scde")[c("Depends",
Is the following intentional or something that has been overlooked?
[HB-X201]{hb}: R --vanilla
R Under development (unstable) (2016-05-13 r70616) -- "Unsuffered Consequences"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
[...]
## Note
r <- function()
> {
> tr <- .traceback()
> if(length(tr) == 0)
> {
> return(NULL)
> }
> tryCatch(eval(parse(text = tr[[1]])), error = identity)
> }
>
> Note that it uses .traceback() from R 3.3.0; you'll have to use
> baseenv()$.Traceback with e
On Wed, May 4, 2016 at 1:27 PM, David Winsemius <dwinsem...@comcast.net> wrote:
>
>> On May 4, 2016, at 12:41 PM, Henrik Bengtsson <henrik.bengts...@gmail.com>
>> wrote:
>>
>> Hi,
>>
>> at the R prompt, is it possible to retrieve the la
Hi,
at the R prompt, is it possible to retrieve the last error (as in
condition object of class "error")?
I'm not asking for geterrmessage(), which only returns the error
message (as a character string). I'm basically looking for a
.Last.error or .Last.condition, analogously to .Last.value for
The following core dumps R 3.2.5, R 3.3.0 RC and R devel on Windows.
I have tried to use a minimal setup (for all versions tested), i.e.
C:\> cd C:\
C:\> set PATH=C:\PROGRA~1\R\R-33~1.0RC\bin
C:\> set R_DEFAULT_PACKAGES=base
C:\> R --quiet --vanilla
> close(fifo("foo.tmp", open="wb"))
[core
R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
/Henrik
On Sun, May 1, 2016 at 7:08 PM, Henrik Bengtsson
<henrik.bengts...@gmail.com> wrote:
> The following core dumps R 3.2.5, R 3.3.0 RC and R devel on Windows.
> I have tried to use a minimal setup (for
On Tue, Apr 19, 2016 at 9:21 AM, Hadley Wickham wrote:
>
> This might be too big a change - but is it worth reconsidering the
> behaviour of Rscript? Maybe the simplest fix would be simply to always
> load the methods package. (I think historically it didn't because
>
Hi, I've seen that some packages use .packageName internally to infer
their own name. Is that officially supported? I could not find it
documented anywhere.
There's utils::packageName(), which internally looks for .packageName.
However, if the latter is not found, it may return NULL whereas an
On a related note, the storage mode should try to match ans[[1]] (or
unlist:ed and) when allocating 'ansmat' to avoid coercion and hence a full
copy.
Henrik
On Jan 26, 2017 07:50, "William Dunlap via R-devel"
wrote:
It would be cool if the default for tapply's
Second this. As the CRAN Policies suggests, there's also the very
handy winbuilder service (https://win-builder.r-project.org/) you can
use to check your package on Windows. This service has been a
valuable workhorse for years.
We should also mention the continuous integration (CI) services
Continuing the tradition to post millennia milestones on CRAN:
So, it happened. Today (January 27, 2017 PCT) CRAN reached 10,000 packages [1].
Needless to say, the rate with which new packages are added to CRAN
keeps increasing and so does the number of contributors (maintainers).
Somewhere out
uard against those functions that fail for 0 length arg.
>
> But I think the main reason for _not_ setting such a default is
> back-compatibility. In my proposal, the new argument would not
> be any change by default and so all current uses of tapply()
> would remain unchanged.
>
>&
When using multicore-forking of the parallel package, is it possible
for a child process to know that it is a fork? Something like:
parallel::mclapply(1:10, FUN = function(i) { test_if_running_in_a_fork() })
I'm looking into ways to protect against further parallel processes
(including
On Tue, Jan 24, 2017 at 8:10 PM, Jeroen Ooms <jeroeno...@gmail.com> wrote:
> On Tue, Jan 24, 2017 at 7:06 PM, Henrik Bengtsson
> <henrik.bengts...@gmail.com> wrote:
>> When using multicore-forking of the parallel package, is it possible
>> for a child process to
In Section 'Localization of messages' of R Installation and
Administration (R 3.3.2), it says:
"R can be built without support for translations, but it is enabled
by default."
How can this be done? Is this an option to 'configure', which I then
failed to identify, or via some environment
On Tue, Feb 21, 2017 at 7:00 PM, Dirk Eddelbuettel <e...@debian.org> wrote:
>
> On 21 February 2017 at 18:45, Henrik Bengtsson wrote:
> | In Section 'Localization of messages' of R Installation and
> | Administration (R 3.3.2), it says:
> |
> |"R can be built wit
When running R from the terminal on Linux (Ubuntu 16.04), it core
dumps whenever / wherever I press Ctrl-4 or Ctrl-\. You get thrown
back to the terminal with "Quit (core dump)" being the only message.
Grepping the R source code, it doesn't look like that message is
generated by R itself. Over
hether R should
> ignore that signal, under some circumstances at least, is another
> question.
>
> Best,
>
> luke
>
>
> On Fri, 10 Feb 2017, Henrik Bengtsson wrote:
>
>> When running R from the terminal on Linux (Ubuntu 16.04), it core
>> dumps whenever / w
This has been fixed (https://cran.r-project.org/doc/manuals/r-devel/NEWS.html):
CHANGES IN R 3.3.2 patched:
INSTALLATION on a UNIX-ALIKE
* The configure check for the zlib version is now robust to versions
longer than 5 characters, including 1.2.10.
in SVN r71889 (2017-01-03):
An additional 1000 packages have been added to CRAN. This time, it
took less than 6 months. Today (August 22, 2016), the Comprehensive R
Archive Network (CRAN) [1] reports:
“Currently, the CRAN package repository features 9004 available packages.”
The rate with which new packages are added to
501 - 600 of 1006 matches
Mail list logo