>
>
> Performance statistics are interesting. If we assume the two populations
> have a total of `m` members, then this implementation runs slightly slower
> for m < 20, and much slower for 50 < m < 100. However, this implementation
> works significantly *faster* for m > 200. The breakpoint is prec
question.
I also have written an example of a main function where the original code
from R is compared to my code. I do not attach this example because this
email is already very long but I can provide that example if needed.
Maybe we can discuss this further. Best wishes, Andreas Löffler
_local <- tempfile()
download.file(url = gruene_btw2021, destfile = gruene_btw2021_local)
pdftools::pdf_info(gruene_btw2021_local)
Kind regards
Andreas
--
Prof. Dr. Andreas Blaette
Professor of Public Policy
University of Duisburg-Essen
[[alternative HTML version deleted]]
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Dear Tomas, thank you so much for the explanation. Very helpful for myself, and
relevant for the wider context of packages using rwinlib! Andreas
Am 27.09.22, 20:18 schrieb "Tomas Kalibera" :
On 9/27/22 18:42, Blätte, Andreas wrote:
> Dear all,
>
> my a
scenario. It may not
be covered by Iñakis initial three scenario?
Kind regards, Andreas
Am 27.09.22, 10:15 schrieb "R-devel im Auftrag von Iñaki Ucar"
:
El mar., 27 sept. 2022 4:22, Dirk Eddelbuettel escribió:
>
> Regarding 'system' libraries: Packag
of my analysis of the code of `localeToCharset()` is that it targets
special scenarios on Windows and macOS, but not on Linux.
Kind regards
Andreas
--
Prof. Dr. Andreas Blaette
Professor of Public Policy and Regional Politics
University of Duisburg-Essen
[[al
Hi Luke,
As proposed by you, I have just added this to the wishlist in Bugzilla:
https://bugs.r-project.org/show_bug.cgi?id=18233
Best,
Andreas
2021-11-04 17:04 GMT+01:00 luke-tier...@uiowa.edu:
> Can you please submit this as a wishlist item to bugzilla? it is
> easier to keep track of
I have now added this to the wishlist in Bugzilla:
https://bugs.r-project.org/show_bug.cgi?id=18234
2021-10-07 09:26 GMT+02:00 "Andreas Kersting" :
> Hi all,
>
> As part of RunGenCollect() (in src/main/memory.c), some maintenance on the
> CHARSXP cache is done, namely u
lso did not yet adjust do_show_cache() and do_write_cache(),
but I could do so if the patch is accepted.
Thanks for your consideration and feedback.
Regards,
Andreas
P.S. I had a hard time to get the indentation right in the patch due the mix of
tabs and spaces. Sorry, if I
Hi all,
in GC (in src/main/memory.c), FORWARD_CHILDREN() (called by PROCESS_NODES())
treats STRSXPs just like VECSXPs, i.e. it calls FORWARD_NODE() for all its
children. I claim that this is unnecessarily inefficient since the children of
a STRSXP can legitimately only be (atomic) CHARSXPs and
Hi all,
As part of RunGenCollect() (in src/main/memory.c), some maintenance on the
CHARSXP cache is done, namely unmarked nodes/CHARSXPs are removed from the hash
chains. This requires always touching all CHARSXP in the cache, irrespective of
the number of generations which were just garbage co
Hi,
For (hopefully) full reproducibility:
docker run rocker/tidyverse:4.0.5 Rscript -e
'devtools::install_github("akersting/dumpTest", INSTALL_opts =
"--with-keep.source"); library(dumpTest); for (i in 1:100) {print(i);
print(system.time(f()))}'
Regards,
Andre
also from base R. If I install using e.g.
devtools::install_github() directly it is also fine for me.
Could you please confirm? Thanks!
Regards,
Andreas
2021-04-07 16:20 GMT+02:00 "Dirk Eddelbuettel" :
>
> On 7 April 2021 at 16:06, Andreas Kersting wrote:
> | Hi Luke,
> |
&
9
user system elapsed
11.807 0.708 12.597
[1] 10
^C
Timing stopped at: 6.638 0.549 7.214
I had to interrupt in iteration 10 because I was running low on RAM.
Regards,
Andreas
2021-04-07 15:28 GMT+02:00 luke-tier...@uiowa.edu:
> On Wed, 7 Apr 2021, Andreas Kersting wrote:
>
>
ption of the R process (v4.0.5 on Linux)
quickly explodes.
I am having a hard time to understand what exactly is happening here. Something
w.r.t. too deeply nested environments? Could someone please enlighten me?
Thanks!
Regards,
Andreas
Background:
In an R package I store crash dumps on error in a
on. Very much appreciated!
Regards,
Andreas
2021-03-30 10:03 GMT+02:00 "Simon Urbanek" :
> Andreas,
>
> What does any of this to do with CRAN? This not a the CRAN list - we're
> discussing the proper approach of using valgrind and R can only assume that
> the memory i
lizes the memory, that is fine, but unnecessary.", I am not sure if it is
acceptable.
Regards,
Andreas
2021-03-30 00:39 GMT+02:00 "Simon Urbanek" :
> Andres,
>
> correct me if I'm wrong, but the issue here is not initialisation but rather
> valgr
y directly from
allocVector3().
Regards,
Andreas
2021-03-29 10:41 GMT+02:00 "Tomas Kalibera" :
> Hi Andreas,
> On 3/26/21 8:48 PM, Andreas Kersting wrote:
>> Hi Dirk, > > Sure, let me try to explain: > > CRAN ran the tests of my
>> package using R which wa
are that this is a
problem / not allowed.
Regards, Andreas
2021-03-26 19:51 GMT+01:00 "Dirk Eddelbuettel" :
>
> Andreas,
>
> Can you briefly describe what it is you are trying to do?
>
> In general, no R package would use valgrind directly; it is an optional
&
!?
Not sure though if Oracle Developer Studio on Solaris supports __has_include()
...
2021-03-26 08:40 GMT+01:00 "Andreas Kersting" :
> Hi,
>
> In my package bettermc, I use a custom allocator, which hands out already
> defined/initialized memory (mmap of a POSIX shared memo
need to
include both valgrind.h and memcheck.h in the src of my package and include
these (rather than the system headers), correct? Should I best take these
headers directly from R (src/include/vg)?
Thanks! Regards,
Andreas
__
R-devel@r-project.org
there are plans to offer testing environments for Apple M1.
Andreas Blätte
Am 28.02.21, 16:50 schrieb "R-devel im Auftrag von Paul Gilbert"
:
If there was a response to the "how can I test it out" part of this
question then I missed it. Can anyone point to a W
me(x = c(1, 2, 3), y = c(1,
2, 3)))
Coefficients:
(Intercept)x
-4.441e-161.000e+00
Both versions behave identically until the call C_Cdqrls in the fit.lm
function. What causes this changed behavior?
Best regards,
Andreas Fromkorth.
Next PLA 3.0 Trainings (Business class
Andreas
Von: Gabriel Becker
Datum: Dienstag, 6. Oktober 2020 um 02:02
An: Blätte
Cc: Peter Dalgaard via R-devel
Betreff: Re: [Rd] S4 - inheritance changed by order of setClassUnion and setAs()
Andreas,
As far as I can tell (/conjecture), this is because the list of classes a
particular class
setClass("mother", slots = c(b = "matrix"), contains = "grandma")
setClass("daughter", slots = c(c = "list"), contains = "mother")
setAs(from = "daughter", to = "grandma", def = function(from) new("grandma&quo
Thanks, that was very helpful. The C11 features I use do actually work in C99
mode, so I will stick with that. I just thought it was kind of "cleaner" to
specify C11 mode when using features from that standard.
2020-09-29 16:35 GMT+02:00 "Prof Brian Ripley" :
> On 28
;:
-std=gnu11
(Same for -std=c11.)
Thanks! Regards,
Andreas Kersting
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
ster branch) on my Debian R-devel test environment,
I realize that dplyr has many reexports that are documented in a manner that
evokes the same issues I have seen. I assume that further packages will
encounter this issue.
Kind regards
Andreas (Blätte)
--
Prof. Dr. Andreas Blätte
Professor
Hi Benjamin,
you cannot pipe to echo, since it does not read from stdin.
echo just echos is first arg, i.e. echo /dev/stdin > /dev/null will echo the
string "/dev/stdin"to /dev/stdout, which is redirected to /dev/null.
Try
p <- pipe("cat > /dev/null", open = &qu
with this commit:
https://github.com/wch/r-source/commit/e08cffac1c5b9015a1625938d568b648eb1d8aee
Regards,
Andreas
2019-11-28 13:54 GMT+01:00 Andreas Kersting:
> Hi Tomas,
>
> I rebuild R (v3.5.2 for now, R-devel to follow) from the Debian package with
> MC_DEBUG defined and hopeful
with this commit:
https://github.com/wch/r-source/commit/e08cffac1c5b9015a1625938d568b648eb1d8aee
Regards,
Andreas
2019-11-28 13:54 GMT+01:00 Andreas Kersting:
> Hi Tomas,
>
> I rebuild R (v3.5.2 for now, R-devel to follow) from the Debian package with
> MC_DEBUG defined and hopeful
egarding sending you the complete example: I first have to figure out if this
is possible at all, because it would involve data of a client.
Regards,
Andreas
parent[15366] created pipes: comm (6->5), sir (8->7)
parent registers new child 15379
child process 15379 started
parent[15366] crea
rite error, closing pipe to the master"));
(gdb) n
685 error(_("there is no pipe to the master process"));
Does this help in any way?
Is there something else I can/should look at?
Regards,
Andreas
2019-11-27 15:04 GMT+01:00 Tomas Kalibera:
> Hi Andreas,
>
session via Rscript) I
only process the second input file it will work. The other observations on R vs
Rscript, NFS share etc. still hold.
Sorry for this! Regards,
Andreas
2019-11-27 12:10 GMT+01:00 Andreas Kersting:
> Hi,
>
> I am facing a very weird problem with parallel::mclapply.
ly related. I
am not even sure if it is a problem in the parallel package or some other
(memory) bug. What strikes me is that others have observed a very similar error
when using Rscript but not when using an interactive R session, just like I do.
I am not expecting a fix based on the infor
[1] 999
[1] 1000
[1] 1000
[1] 999
[1] 998
[1] 1000
[1] 998
[1] 1000
[1] 1000
[1] 1000
[1] 1000
[1] 999
Error: cntr_on.exit == cntr_f is not TRUE
I was bitten by this because an on.exit expression, which releases a file lock,
was interrupted (before it actua
Hi Luke,
Thanks also for your feedback! I will then follow the proposed route for the
problem at hand and I will report back if I encounter any issues.
I am also going look into the issues of stack checking and R_ToplevelExec.
Regards,
Andreas
2019-05-20 19:29 GMT+02:00 Tierney, Luke:
> Y
Hi Simon,
Your response hits the mark of why I am doing it that way rather than going
with what Stepan proposed. Also good to hear that you consider my analysis to
be pretty complete. Thanks for the feedback!
Regards,
Andreas
2019-05-20 15:54 GMT+02:00 Simon Urbanek:
> Stepan,
>
>
ain_thread() is left via a
longjmp. This is e.g. required if the secondary threads use memory which was
allocated in fun_running_in_main_thread() using e.g. R_alloc().
Best regards,
Andreas Kersting
#include
#include
#include
#include
extern uintptr_t R_CStackLimit;
extern int
2018-08-31 14:15:16.4" "2018-08-31 14:15:16.5"
[7] "2018-08-31 14:15:16.5" "2018-08-31 14:15:16.7" "2018-08-31 14:15:16.7"
"2018-08-31 14:15:16.9" "2018-08-31 14:15:17.0"
It seems to me, that R correctly decides that there is only one significant
digit after the decimal point, but then incorrectly (due to representation
error) just cuts off after the first digit.
BR,
Andreas
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Sorry, I don't understand how to file a bug properly. Nontheless I want to
report this one because it is still in the code after so many years.
This bug still exists:
https://stackoverflow.com/questions/15871702/difficulties-with-agrep-fixed-f
[[alternative HTML version deleted]]
___
I have filed a bug report here:
https://github.com/rstudio/rstudio/issues/2070
Original Message
From: peter dalgaard [mailto:pda...@gmail.com]
Sent: Friday, Jan 26, 2018 10:15 AM GMT
To: Andreas Kersting
Cc: r-devel@r-project.org
Subject: [Rd] utils::install.packages with
Just noticed that this problem only occurs from within RStudio
(v1.1.414). Any ideas why?
Am 26.01.2018 um 08:56 schrieb Andreas Kersting:
Hi,
Installing a source package on Windows using utils::install.packages()
with quiet=TRUE fails, while it works with the default quiet = FALSE.
The
ommand : chr "C:/PROGRA~1/R/R-34~1.3/bin/x64/R"
env : chr(0)
input : NULL
invisible : logi TRUE
minimized : logi FALSE
stderr : logi FALSE
stdin : chr ""
stdout : logi FALSE
wait : logi TRUE
Warning messages:
1: running command '"C:/PROGRA~1/R/R-34~1.3/bin/x64/R"
Original Message
From: Hadley Wickham [mailto:h.wick...@gmail.com]
Sent: Wednesday, Jun 14, 2017 2:51 PM GMT
To: Simon Urbanek
Cc: Andreas Kersting; r-devel@r-project.org
Subject: [Rd] [WISH / PATCH] possibility to split string literals across
multiple lines
On Wed, Jun 14
Original Message
From: Duncan Murdoch [mailto:murdoch.dun...@gmail.com]
Sent: Wednesday, Jun 14, 2017 1:36 PM GMT
To: Andreas Kersting
Cc: r-devel
Subject: [Rd] [WISH / PATCH] possibility to split string literals across
multiple lines
On 14/06/2017 6:45 AM, Andreas Kersting
On Wed, 14 Jun 2017 06:12:09 -0500, Duncan Murdoch
wrote:
> On 14/06/2017 5:58 AM, Andreas Kersting wrote:
> > Hi,
> >
> > I would really like to have a way to split long string literals across
> > multiple lines in R.
>
> I don't understand why you requir
don't know the ins and outs of the parser of R (hence: please very
carefully review the attached patch), but I guess this would be more
work to implement!?
What do you think? Is there anybody else who is missing this feature in
the first place?
Regards,
Andreas
Index: src/main/gram.c
==
Consider the following code snippets:
> list(quote(1 + 1), I(quote(1 + 1)))
[[1]]
1 + 1
[[2]]
[1] 2 # should also be 1 + 1!?
> str(list(quote(1 + 1), I(quote(1 + 1
List of 2
$ : language 1 + 1
$ : language + 1 1 # why is this line different from the one above?
..- attr(*, "class")= ch
gger.look(), we directly inspect the
dumped one with evalq(browser(), envir = dump[[ind]]). This way we do
not alter the enclosing environment of the frame.
If the global environment was included in the dump, we change the
enclosing environment of the dumped .GlobalEnv to search()[2]. For all
-n 1
drwxr-xr-x 12 aleha staff 4096 Apr 7 2012 XML
Here, the user aleha installed XML into /usr/local/lib/R/site-library and
no other user (not even in the same group) has write access to that
package's directory. So, neither update nor removal is possible. Am I
missing the point?
[...]
Regards,
Andreas
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
group
writing permissions which we would gladly dismiss again.
Best,
Andreas
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
hich relies on .Last.value
for results handling and does not expect that $visible element -- should
adapt and ignore that explicitly?
Regards,
Andreas
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
------>8---
Regards,
Andreas
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
ESS[S] is the mode for editing S language files. This mode handles:
|
| [...]
| - completion of object names and file names.
`
from
http://ess.r-project.org/Manual/ess.html#ESS_0028S_0029_002d_002dEditing-files
ESS can do completion of functions, object names, and also
list/data.frame elements in *both* the inferior R buffer as well as in
the .R file.
[...]
- Andreas
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
)
Sys.sleep(0.1)
> topMenu <- tkmenu(MainWindow)
> tkconfigure(MainWindow,menu=topMenu)
> tkgrab.set(MainWindow)
> tkfocus(MainWindow)
>}
Cheers
Andreas
Andreas Möltner
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
nt classes I did not write? Or
is this intended behaviour?
Best regards,
Andreas
--
Andreas Borg
Abteilung Medizinische Informatik
Universitätsmedizin der Johannes Gutenberg-Universität Mainz
Institut für Med. Biometrie, Epidemiologie und Informatik (IMBEI)
Obere Zahlbacher Straße 69, 55131
g it externally), the time
it takes to save workspace is probably the prime concern for most users.
I have attached a proposed modified definition of save.image() at the end of
the message.
Cheers,
Andreas
>>
>> Thanks,
>> Andreas
>>
>> _
Hi,
in "save.image", it would be nice if there was a "compression_level"
argument that is passed along to "save".
Or is there a reason for disabling the "compression_level" option for
saving workspaces, but enabling it for manually sav
ve the hassle of
reinstalling or copying the extension packages one regularly uses.
Andreas
--
Andreas Borg
Medizinische Informatik
UNIVERSITÄTSMEDIZIN
der Johannes Gutenberg-Universität
Institut für Medizinische Biometrie, Epidemiologie und Informatik
Obere Zahlbacher Straße 69, 55131 Mainz
hing works fine. Is there a way to
prevent Sweave from failing in the former case? Would this even account
as a bug? I think it would be nice if the script just kept on running
without plotting on the screen if opening X11 fails, just like it does
when no X11 is available at all.
Best regards,
that has
additional arguments compared to the generic, for example:
setGeneric("myMethod", function(x, ...) standardGeneric("myMethod"))
setMethod("myMethod", "myClassA", function(x,y) {"myMethodA"})
In this case, the implementation for myMethod wil
Thanks for all the suggestions. However, I was not really looking for a
solution but I want to propose this (in my view useful) change to be
included in a future version of R. For the time being I will include a
modified version in my package.
Best regards,
Andreas
--
Andreas Borg
desired.
In case anyone from the core team is willing to incorparate this idea, I
attached the patch file for the necessary changes below.
Best regards,
Andreas
3c3
< width = NA, title, label, style = 1)
---
> width = NA, title, label, style = 1, file=stderr())
Hi Martin,
in the real function, I am not dispatching on the argument for which I
test missingness, but it might be a good idea to do so - this way I
could make the function tidier by relocating different branches to
seperate methods. Thanks for the suggestion!
Andreas
if you're te
.
Is there any alternative that works in this case? Or is there a chance
that missing() might be changed to work in this case in the near future?
Of course I know I could set NA or NULL as default values and check for
these, but there are reasons I want to have legal default values for all
argument
vailable ones.
So this is not a problem of misspelled arguments. The involved class is
an S3 class made usable to S4 methods by "oldClass".
Andreas Borg schrieb:
Dear list members,
I have defined a binary operator %append% with methods for some S4
classes. In my documentation fil
seen this behaviour with R 2.12.0 and 2.12.1.
Best regards and thanks for any suggestion,
Andreas
--
Andreas Borg
Medizinische Informatik
UNIVERSITÄTSMEDIZIN
der Johannes Gutenberg-Universität
Institut für Medizinische Biometrie, Epidemiologie und Informatik
Obere Zahlbacher Straße 69, 55131
Hi,
is it possible, that the current development version for Windows (
http://cran.at.r-project.org/bin/windows/base/R-2.13.0dev-win.exe) is
infected by a trojan/virus. My antivir-program (www.avira.com) seems to find
a trojan in open.exe at bin\i386.
Best regards,
Andreas
the sources.
So a custom Makefile seems the only feasible solution. Still I'd be
thankful to know about other packages (if they exist) which create other
than the standard library files.
Best regards,
Andreas
Prof Brian Ripley schrieb:
R CMD INSTALL is R code, and you can read it for you
is not intended to be loaded into R but into a SQLite database to which
I connect via RSQLite. I would like to have these object in a seperate
library.
Thanks and kind regards,
Andreas
--
Andreas Borg
Medizinische Informatik
UNIVERSITÄTSMEDIZIN
der Johannes Gutenberg-Universität
Institut
already supported by the "mean"
generic function.
Best,
Andreas
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
ot;1970-01-01")
[1] "1970-01-01"
As you can see, both calls produce the same output on the screen. Curiously,
the output is NOT the same for other consecutive origins:
> as.Date(0.5, origin="2009-12-31")
[1] "2009-12-31"
> as.Date(0
ual(table, h[i], x, indx)) {
h[i] = NIL; /* < 0, only index values are inserted */
return;
}
i = (i + 1) % d->M;
}
}
I would have submitted a patch file, but I couldn't checkout from the
svn repository.
Cheers,
Andreas
--
Andreas Borg
Medizinische Informati
R 2.9.1 and 2.9.2 report "not found" when I try to save .Random.seed for
later restore, however, the manual ?.Random.seed says that it still exists.
--
Andreas Westfeld, 0432 01CC F511 9E2B 0B57 5993 0B22 98F8 4AD8 EEEA
HTW Dresden, Fakultät Informatik/Mathematik
Infor
wd command was actually successful. Guess
this all explains the problem and sorry for the bandwidth waste ;-)
Regards,
Andreas Fischlin
________
ETH Zurich
Prof. Dr. Andreas Fischlin
Systems Ecology - Institute of Integrative Biolog
Full_Name: Andreas Fischlin
Version: 2.8.1
OS: Mac OS X 10.5.6
Submission from: (NULL) (84.75.178.229)
R.home() returns "/Library/Frameworks/R.framework/Resources" although there is
no such directory present. Inspecting the actual directory structure of the R
installation indicate
which type of points should be drawn.
May be other users already found this defect.
best whishes
Andreas Plank
--- 8< ###
triax.points <- function (x,
show.legend = FALSE,
label.points = FALSE,
point.labels = NULL,
col.symbols = par("fg"),
pch = par("p
78 matches
Mail list logo