Re: [Rd] xlsReadWrite Pro and embedding objects and files in Excel worksheets

2007-02-11 Thread Mark W Kimpel
ng? Would it be worthy of a simple package? Thanks for your help and hard-work Hans-Peter and I look forward to hearing how things are going, Mark Hans-Peter wrote: > Hi Mark, > > Sorry to not reply earlier, I was away this week. > >> Hans-Peter and other R developers, >>

Re: [Rd] newline with cell of Excel worksheet created with write.xls

2007-02-12 Thread Mark W Kimpel
te, repost the solutions or additional functionality to the list. Mark Hans-Peter wrote: > Hi Mark, > > You need a character vector or a data.frame for separate rows. Something > like: > > longtext <- 'akdf kadfö \nkad flkdöflkadfk dafk \nlakdf > kdjfkjdfkjadfk\njadf

[Rd] can't load just saved R object "ReadItem: unknown type 65"

2007-03-22 Thread Mark W Kimpel
s error is reproducible after logout from server and restart of emacs and R. Below is my output and sessionInfo(). Thanks, Mark > setwd("~/Genomics/Experiments.Genomic/BB01/acb.shell") > local(save(affy.object.preprocessed, file ="affy.object.preprocessed.R" )) > load(&quo

Re: [Rd] [R] can't load just saved R object "ReadItem: unknown type 65"

2007-03-23 Thread Mark W Kimpel
Luke, I'll be gone for about 2 weeks but will work on getting you a reproducible example when I get back. If this topic comes up with anyone else, please copy me on your responses as I may miss it in the 600 emails I'll have to delete on my return :) Mark Luke Tierney wrote: > Acc

[Rd] packages MANOR, qvalue, and tkWidgets fail install on Fedora 7 with latest R-beta build

2007-09-19 Thread Mark W Kimpel
Had some packages fail install so I updated to today's R-beta release. On updating packages the following packages still fail. sessionInfo follows. Mark Warning messages: 1: In install.packages(update[instlib == l, "Package"], l, contriburl = contriburl, : installation of

Re: [Rd] Problem compiling R 3.6.1 on POWER 570 system

2007-12-19 Thread Mark W Kimpel
Mark, My sysadmin has helped me install R on our Power cluster. This is not my area of expertise, but I will pass along his directions, which got me up and running: To quote him, "Our machine, BigRed runs SuSE Linux Enterprise Server 9, Service Pack 3. The OS is 64-bit, but there are 3

[Rd] calling MPI parallel C code from R

2008-01-21 Thread Mark W Kimpel
that this is going to be tricky, but I need to get this to work. Helpful suggestions? I'd be happy to share more of my R and C code if that is helpful, but I wanted to avoid a very long post at this point. Thanks, Mark > dyn.load(x = c.code, local = TRUE, now = TRUE) Error in dyn.lo

[Rd] R package Matrix failing to build with R-devel on Ubuntu AMD64

2008-01-29 Thread Mark W Kimpel
Switched back to R-devel tonight after using R-2.6.1 for awhile and when I updated my devel packages Matrix installation failed. Not critical for me but thought I should report it. I am using Ubuntu Gusty AMD64 OS. Tail of install output and sessionInfo follows. Mark Loading required package

[Rd] help with R rendering engine

2008-02-07 Thread Mark W Kimpel
two polygons stops at the border of each polygon. The polygons can be transparent, so the option of just rendering the lines first won't work. Is there some help for me with an R internal or perhaps a higher level function? Thanks, Mark -- Mark W. Kimpel MD ** Neuroinformatics ** Dept. of

Re: [Rd] help with R rendering engine

2008-02-10 Thread Mark W Kimpel
ing a matrix in R to represent pixel-space and using my own edge-detection algorithm. As I write this, I believe I am almost there, but testing awaits tomorrow. The real question will be how fast it actually runs. I'll report back later this week. Mark Mark W. Kimpel MD ** Neuroinformatics *

[Rd] lazyLoadDBfetch error

2006-07-31 Thread Kimpel, Mark William
the problem persists. Ideas? Thanks, Mark > require(gmodels) Loading required package: gmodels Error in lazyLoadDBfetch(key, datafile, compressed, envhook) : internal error in R_decompress1 [1] FALSE sessionInfo() R version 2.4.0 Under development (unstable) (2006-06-15 r38348) i386

[Rd] C vs. C++ as learning and development tool for R

2007-01-19 Thread Kimpel, Mark William
ssary, but as a developer of C++, he is probably biased. I would greatly appreciate the advice of the R developers and package contributors on this subject. "C" or "C++"? Thanks, Mark Mark W. Kimpel MD Official Business Address: Department of Psychiatry In

Re: [Rd] C vs. C++ as learning and development tool for R

2007-01-19 Thread Kimpel, Mark William
complicated. 3. Lastly, is there a C or C++ community similar to R that I could address questions relating to those languages to? I don't want to abuse the R list as I learn. Thanks, Mark Mark W. Kimpel MD (317) 490-5129 Work, & Mobile (317) 663-0513 Home (no voice mail pleas

Re: [Rd] Community Feedback: Git Repository for R-Devel

2018-01-04 Thread Mark van der Loo
This question has been discussed before on this list: http://r.789695.n4.nabble.com/Why-R-project-source-code-is-not-on-Github-td4695779.html See especially Jeroen's answer. Best, Mark Op do 4 jan. 2018 om 01:11 schreef Juan Telleria : > UNBIASED FACTS: > • Bugzilla & R-deve

Re: [Rd] Searching R Packages

2018-01-29 Thread Mark van der Loo
en of course there is the R journal and JSS, but those speak for themselves. So maybe a 'keeping up to date' section would be nice in the article? Best, Mark Op ma 29 jan. 2018 om 00:25 schreef Ravi Varadhan : > Hi Spencer, > Thank you for this wonderful service to t

Re: [Rd] Best practices in developing package: From a single file

2018-01-31 Thread Mark van der Loo
'parent' of roxygen is Doxygen, which was already widely used (also by me) in the C/C++ community before roxygen was published. I cannot remember anyone ever complaining about C/C++ documentation deteriorating because of Doxygen. -Mark Op wo 31 jan. 2018 om 14:02 schreef Joris Meys :

[Rd] Apparent bug in behavior of formulas with '-' operator for lm

2018-03-16 Thread Mark van der Loo
vels) : factor z has new levels a It seems a bug to me, although one could argue that 'lm's documentation does not allow one to expect that the '-' operator should work generally. If it is a bug I'm happy to report it to bugzilla. Thanks for all your efforts, Mark ps:

Re: [Rd] Apparent bug in behavior of formulas with '-' operator for lm

2018-03-16 Thread Mark van der Loo
Joris, the point is that 'z' is NOT used as a predictor in the model. Therefore it should not affect predictions. Also, I find it suspicious that the error only occurs when the response variable conitains missings and 'z' is unique (I have tested several other cases to confirm

Re: [Rd] Apparent bug in behavior of formulas with '-' operator for lm

2018-03-16 Thread Mark van der Loo
mprove this behavior, but perhaps one of the core authors can have a look at it. Best, Mark Op vr 16 mrt. 2018 om 13:22 schreef Joris Meys : > Technically it is used as a predictor in the model. The information is > contained in terms : > > > terms(x ~ . - z, data = d) > x ~ (

Re: [Rd] data.table not available as win binary for R 3.5

2018-04-24 Thread Mark van der Loo
ing in the output on Windows: Warning: stack imbalance in '{', 39 then 40 I don't have a Windows PC handy where I can quickly reproduce this so if anyone has solved similar problems it would be nice if they could be posted here. Best, Mark [1] https://cran

Re: [Rd] length of `...`

2018-05-03 Thread Mark van der Loo
s follows: do.call(someotherfunction, L) } -Mark Op do 3 mei 2018 om 16:29 schreef Dénes Tóth : > Hi, > > > In some cases the number of arguments passed as ... must be determined > inside a function, without evaluating the arguments themselves. I use > the following construct

Re: [Rd] compairing doubles

2018-08-31 Thread Mark van der Loo
how about is_evenly_spaced <- function(x,...) all.equal(diff(sort(x)),...) (use ellipsis to set tolerance if necessary) Op vr 31 aug. 2018 om 15:46 schreef Emil Bode : > Agreed that's it's rounding error, and all.equal would be the way to go. > I wouldn't call it a bug, it's simply part of wor

Re: [Rd] compairing doubles

2018-08-31 Thread Mark van der Loo
Sorry for the second e-mail: this is worth watching: https://www.youtube.com/watch?v=3Bu7QUxzIbA&t=1s It's Martin Maechler's talk at useR!2018. This kind of stuff should be mandatory material for any aspiring programmer/data scientist/statistician. -Mark Op vr 31 aug. 2018 om

Re: [Rd] compairing doubles

2018-08-31 Thread Mark van der Loo
Ah, my bad, you're right of course. sum(abs(diff(diff( sort(x) < eps for some reasonable eps then, would do as a oneliner, or all(abs(diff(diff(sort(x < eps) or max(abs(diff(diff(sort(x) < eps -Mark Op vr 31 aug. 2018 om 16:14 schreef Iñaki Ucar : > El vie., 3

[Rd] missing binaries in R-devel windows snapshot 78175

2020-04-09 Thread Bravington, Mark (Data61, Hobart)
R version caught up. cheers Mark Mark Bravington CSIRO Marine Lab Hobart Australia __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] missing binaries in R-devel windows snapshot 78175

2020-04-09 Thread Bravington, Mark (Data61, Hobart)
> On Thu, Apr 9, 2020 at 12:44 PM Bravington, Mark (Data61, Hobart) > wrote: > > > > The "r-devel snapshot build" 78175 on Windows--- a dot-exe installer--- > > seems to be missing a couple of files in its bin/i386 folder: Rterm.exe and > > Rgui.exe. Bot

Re: [Rd] missing binaries in R-devel windows snapshot 78175

2020-04-10 Thread Bravington, Mark (Data61, Hobart)
for release soon--- bit disconcerting to hear it's actually broken! However, I suspect R4.0 [ with fixed md5sum() ] will be released before our package sees the light of day. Thanks again Mark Mark Bravington CSIRO Marine Lab Hobart Australia Fro

Re: [Rd] NEWS.md support on CRAN

2015-06-04 Thread Mark van der Loo
r younger days?). In short, I think that added value of NEWS.md is fairly limited but it does increase the risk of dispersing the NEWS all over the web. Best, Mark Op wo 3 jun. 2015 om 08:32 schreef Kurt Hornik : > >>>>> Duncan Murdoch writes: > > > On 0

Re: [Rd] NEWS.md support on CRAN

2015-06-04 Thread Mark van der Loo
WS.Rd? (perhaps it is already possible, I'm not sure of that). I don't maintain CRAN, but I know what I would prefer.. Cheers, Mark ​ [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mai

Re: [Rd] is R syntax closed?

2015-09-19 Thread Mark van der Loo
same way git does. Since R is free in the GNU sense you can always define your own local version, see e.g. [2]. > i'm new to R welcome, and have fun! best, Mark [1] https://www.r-project.org/contributors.html [2] https://github.com/radfordneal/pqR Op za 19 sep. 2015 om 04:02 schreef

[Rd] Inconsistency in treating NaN-results?

2015-11-26 Thread Mark van der Loo
unctions (following the IEEE standard on double precision). If that's the case, the result sin(Inf)=NaN seems normal to me and a warning is unnecessary. So why the choice to have warning on sin(Inf), but not on 0/0 or exp(Nan)? Is it just historical or am I missing a reasoning or som

Re: [Rd] Inconsistency in treating NaN-results?

2015-12-01 Thread Mark van der Loo
1] is never much more then an arm's length away. So it all depends on what user you're aiming at when implementing such things. A (switchable) warning about loss of precision without returning NaN would probably be a reasonable compromise. Best, Mark [1] https://books.google.nl/books?

Re: [Rd] How do I reliably and efficiently hash a function?

2015-12-11 Thread Mark van der Loo
In addition to what Charles wrote, you can also use 'local' if you don't want a function that creates another function. > f <- local({info <- 10; function(x) x + info}) > f(3) [1] 13 best, Mark Op vr 11 dec. 2015 om 03:27 schreef Charles C. Berry : > On Thu, 10

Re: [Rd] (no) circular dependency

2016-04-07 Thread Mark van der Loo
At the risk of stating the over-obvious: there's also the option of creating just a single package containing all functions. None of the functions that create the interdependencies need to be exported that way. Btw, his question is probably better at home at the r-package-devel list. Best, M

Re: [Rd] (no) circular dependency

2016-04-08 Thread Mark van der Loo
an Dușa : > Hi Mark, > > Uhm... sometimes this is not always possible. > For example I have a package QCA which produces truth tables (all > combinations of presence / absence of causal conditions), and it uses the > venn package to draw a Venn diagram. > It is debatable if one

Re: [Rd] Single-threaded aspect

2016-05-12 Thread Mark van der Loo
o create R-variables from multiple threads running in C. (R's variable administration is such that the order of (un)making them from compiled code matters). I am not very savvy on Rcpp or XPtr objects, but it appears that Dirk provided answers about that in your SO-question. Best, Mark Op

Re: [Rd] [WISH / PATCH] possibility to split string literals across multiple lines

2017-06-14 Thread Mark van der Loo
te0(x,y) "hello" %+% " pretty" %+% " world" -Mark Op wo 14 jun. 2017 om 13:53 schreef Andreas Kersting : > On Wed, 14 Jun 2017 06:12:09 -0500, Duncan Murdoch < > murdoch.dun...@gmail.com> wrote: > > > On 14/06/2017 5:58 AM, Andreas Kersti

Re: [Rd] [WISH / PATCH] possibility to split string literals across multiple lines

2017-06-14 Thread Mark van der Loo
I know it doesn't cause construction at parse time, and it was also not what I said. What I meant was that it makes the syntax at least look a little as if you have a line-breaking character within string literals. Op wo 14 jun. 2017 om 14:18 schreef Joris Meys : > Mark, that's ac

[Rd] bugs in documentation of stats::stl

2017-08-23 Thread Mark van der Loo
not apply a low-pass filter to each subseries[2]. The subseries are reconstructed to a single series and after that a low-pass filter is applied (step 3 of the algorithm in section 2.2 of [1]) So what should it be? A literal reference to Cleveland's n_(s), n_(l), and n_(t) would be really

Re: [Rd] Natural vs National in R signon banner?

2017-09-01 Thread Mark van der Loo
The way it's phrased now makes it seem that English is not a Natural language ("Natural language support *but* running in an English locale"). Why not just state: "running in an English locale" and leave it with that? Better to leave something out than to be unclear (being correct formally does not

Re: [Rd] R Configuration Variable: Maximum Memory Allocation per R Instance

2017-09-17 Thread Mark van der Loo
Dear Juan, I'm not deeply familiar with the DB's you mention but it seems to me that me that 'memory.limits' does what you want on one OS and you can use shell commands to limit R's memory usage for *nix-alike systems (see ?memory.limits). Also, Jeroen Ooms wrote a nice article about this in the J

Re: [Rd] Change to r-devel warns on #pragma

2017-12-11 Thread Mark van der Loo
nix) Best, Mark On Mon, Dec 11, 2017, 4:33 PM Patrick Perry wrote: > A recent change to r-devel causes an R CMD check warning when a C file > includes a "#pragma GCC diagnostic ignored" pragma: > > https://github.com/wch/r-source/commit/b76c8fd355a0f5b23d42aaf44a879cac0

Re: [Rd] vignettes present in 2 folders or won't work

2020-11-02 Thread Mark van der Loo
On Sun, Nov 1, 2020 at 10:39 PM Duncan Murdoch wrote: > On 01/11/2020 2:57 p.m., Dirk Eddelbuettel wrote: > > > > The closest to a canonical reference for a static vignette is the basic > blog > > post by Mark at > > > > > https://www.markvanderloo.eu/yaRb/

Re: [Rd] New pipe operator

2020-12-06 Thread Bravington, Mark (Data61, Hobart)
'expr' #2. Construct a call() to that function #3. Do the call f <- function( `_PIPE_`) NULL body( f) <- expr environment( f) <- parent.frame() # or something... yes these details are almost certainly wrong expr2 <- substitute( f( `_PIPE_`)) # or something...

Re: [Rd] New pipe operator

2020-12-08 Thread Bravington, Mark (Data61, Hobart)
> > On 06/12/2020 8:22 p.m., Bravington, Mark (Data61, Hobart) wrote: > (and Duncan Murdoch responded, as below) It still seems to me that placeholders are viable and unambiguous (only as things in RHS of pipes), and that something like x |> foo( _PIPE_) x |> bah( otherarg, _

Re: [Rd] New pipe operator

2020-12-08 Thread Bravington, Mark (Data61, Hobart)
> [Duncan Murdoch responding to...] > [... Mark Bravington's proposals for placeholders and anonymous functions] > > x |> foo( _PIPE_) # placeholder > > x |> bah( otherarg, _PIPE_)# placeholder > > x |> { y <- _PIPE_+1; _PIPE_ / y

[Rd] setting .libPaths() with parallel::clusterCall

2020-12-22 Thread Mark van der Loo
. Tested on R 4.0.3 and r-devel. Best, Mark ps: a workaround is documented here: https://www.markvanderloo.eu/yaRb/2020/12/17/how-to-set-library-path-on-a-parallel-r-cluster/ > sessionInfo() R Under development (unstable) (2020-12-21 r79668) Platform: x86_64-pc-linux-gnu (64-bit) Running

Re: [Rd] [External] setting .libPaths() with parallel::clusterCall

2020-12-23 Thread Mark van der Loo
Dear Luke, Thank you, this makes perfect sense. I find it quite hard to express this issue in a way that is both compact and understandable. In any case, below you find a proposal for an update of the documentation. Thank you again for all your work, Mark Index: src/library/parallel/man

[Rd] problem adding gdb to RTOOLS40 on Windows

2021-04-14 Thread Bravington, Mark (Data61, Hobart)
.9.1; I tried copying that gdb.exe into RTOOLS40 but it just exited instantly when I tried to run it from there. - NB I have absolutely no idea what is meant by msys2 or pacman or any of that, I'm just following instructions... Thanks Mark Mark

Re: [Rd] problem adding gdb to RTOOLS40 on Windows

2021-04-15 Thread Bravington, Mark (Data61, Hobart)
. Jeroen's documentation says to do the pacman bit from mingw64, and separately from mingw32--- whereas Avraham's suggestion is to do it just from msys2. I actually did both; gdb seems to end up in the same place regardless, but tomorrow I'll find out if it's *really* worked.

Re: [Rd] 1954 from NA

2021-05-23 Thread Mark van der Loo
I wrote about this once over here: http://www.markvanderloo.eu/yaRb/2012/07/08/representation-of-numerical-nas-in-r-and-the-1954-enigma/ -M Op zo 23 mei 2021 15:33 schreef brodie gaslam via R-devel < r-devel@r-project.org>: > I should add, I don't know that you can rely on this > particular en

[Rd] nchar reporting wrong width when zero-space character is present?

2014-11-19 Thread Mark van der Loo
abstract characters) are counted, noting that some of the symbols in an alphabet represented by an encoding may be invisible (or hardly visible). Much thanks in advance, Best, Mark > sessionInfo() R version 3.1.2 (2014-10-31) Platform: x86_64-pc-linux-gnu (64-bit) locale: [1] LC_CTYPE

Re: [Rd] R string comparisons may vary with platform (plain text)

2014-11-24 Thread Mark van der Loo
The 'stringi' package claims robust cross-platform performance. It exports much functionality of the ICU library and will attempt to install it when not present. The function 'stri_sort' accepts a collation argument that can be defined with 'stri_opts_collator'. On Sun, Nov 23, 2014 at 5:15 PM,

Re: [Rd] \U with more than 4 digits returns the wrong character

2014-12-04 Thread Mark van der Loo
Richie, The R language definition [1] says (10.3.1): \U \U{} (where multibyte locales are supported and not on Windows, otherwise an error). Unicode character with given hex code – sequences of up to eight hex digits. Best, Mark [1] http://cran.r-project.org/doc/manuals/r

Re: [Rd] \U with more than 4 digits returns the wrong character

2014-12-04 Thread Mark van der Loo
I agree. You could post a documentation bug and a request here: https://bugs.r-project.org/bugzilla3/ Cheers, Mark On Thu, Dec 4, 2014 at 8:37 PM, Richard Cotton wrote: > Great spot, thanks Mark. > > This really ought to appear somewhere in the ?Quotes help page. > > Having

Re: [Rd] Possible values for R version status

2015-03-23 Thread Mark van der Loo
In the R installation and administration manual[*] I see at least mentioned The alpha, beta and RC versions of an upcoming x.y.0 release are available [...] so 'beta' seems to be an option unless it is only used informally there. Mark [*] http://cran.r-project.org/doc/manuals/r

Re: [Rd] Development version of R: Improved nchar(), nzchar() but changed API

2015-04-27 Thread Mark van der Loo
Dear Martin, Does the work on nchar mean that bugs #16090 and #16091 will be resolved [1,2]? Thanks, Mark [1] https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=16090 [2] https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=16091 On Sat, Apr 25, 2015 at 11:06 PM, James Cloos wrote

[Rd] User-defined RNG with the standalone Rmath library

2023-02-16 Thread Mark Clements via R-devel
f_rand()); printf("%f\n", runif(0, 1)); return 0; } If we compile using -static, then we get the correct result (two values of 0.5): gcc -static -o test test.c -lRmath -lm ./test : 0.50 : 0.50 Question: does this code work for other users? Sincerely, Mark. När du skic

[Rd] User-defined RNG with the standalone Rmath library

2023-02-21 Thread Mark Clements via R-devel
. -- Mark När du skickar e-post till Karolinska Institutet (KI) innebär detta att KI kommer att behandla dina personuppgifter. Här finns information om hur KI behandlar personuppgifter<https://ki.se/medarbetare/integritetsskyddspolicy>. Sending email to Karolinska Institutet (KI) will result

[Rd] R compilation (revision 87083) failed after upgrade to Ubuntu 24.04 (libtirpc missing)

2024-09-01 Thread Mark Clements via R-devel
ing libtirpc-dev: > sudo apt install libtirpc-dev compilation proceeded smoothly. I understand that this may be local to my system. Sincerely, Mark. N�r du skickar e-post till Karolinska Institutet (KI) inneb�r detta att KI kommer att behandla dina personuppgifter. H�r finns information om

<    1   2