Re: [Rd] Problem installing gdb into Rtools42

2023-01-18 Thread Dirk Eddelbuettel
On 18 January 2023 at 22:44, Dominick Samperi wrote: | On second thought, there is a lot of metapramming code in Rcpp that runs | before main, so | I was wrong to say nothing can happen before main() is called. | Strategically placed print | statements may be the best strategy. Yes, and if you w

Re: [Rd] Object are not destroy while using error (Rf_error)

2023-01-21 Thread Dirk Eddelbuettel
Antoine, I think there are few things going on here. One is that actual _R_ objects may only get destroyed when gc() gets called. Which we applications writer do not control. Another thing that may have an effect is the use of .C() which we all more or less moved away from. Anyway, if we mak

Re: [Rd] Request: better default R_LIBS_USER

2023-03-16 Thread Dirk Eddelbuettel
On 16 March 2023 at 13:39, Felipe Contreras wrote: | I see R by default installs packages in ~/R. I know I can change the | default directory with R_LIBS_USER, but software shouldn't be | polluting the home directory. | | For example both python and node install packages to ~/.local/lib, | ruby

Re: [Rd] Request: better default R_LIBS_USER

2023-03-16 Thread Dirk Eddelbuettel
On 16 March 2023 at 17:15, Henrik Bengtsson wrote: | We're all starting out with a fresh R_LIBS_USER once a year when a new | minor version of R is released, Maybe not "we all". I don't, and I know other Linux users who don't force a rebuild unless needed (as with R 3.6.* -> R 4.0.0). R signals

Re: [Rd] Let R compile for libcurl8 ?

2023-04-03 Thread Dirk Eddelbuettel
On 3 April 2023 at 15:07, Detlef Steuer wrote: | The same Inar reported for rawhide | (https://stat.ethz.ch/pipermail/r-devel/2023-March/082482.html) | is true for SuSE's distros. | | Right now R does not compile with libcurl8, but SuSE Tumbleweed/Factory | switched to 8 a week ago. | | Would

Re: [Rd] Heap access across multiple calls from R to C++

2023-05-24 Thread Dirk Eddelbuettel
On 24 May 2023 at 09:09, Ivan Krylov wrote: | On Wed, 24 May 2023 02:08:25 +0200 | wrote: | > Is there a better way to do this? | | The .Call() interface (where functions take an arbitrary number of | native R objects and return a native R object) combined with external | pointers is likely to

Re: [Rd] restoring LANGUAGE env variable within an R session

2023-06-26 Thread Dirk Eddelbuettel
Ben, POSIX level / glibc level variables are set at process start and AGAIK cannot really be altered after start. They clearly work when set _before_ calling sqrt(-1): $ LANGUAGE=es Rscript -e 'sqrt(-1)' [1] NaN Warning message: In sqrt(-1) : Se han producido NaNs $ LANGUA

Re: [Rd] Correct use of tools::R_user_dir() in packages?

2023-06-27 Thread Dirk Eddelbuettel
On 27 June 2023 at 15:36, Carl Boettiger wrote: | tools::R_user_dir() provides configurable directories for R packages | to write persistent information consistent with standard best | practices relative to each supported operating systems for | applications to store data, config, and cache infor

[Rd] A demonstrated shortcoming of the R package management system

2023-08-06 Thread Dirk Eddelbuettel
CRAN, by relying on the powerful package management system that is part of R, provides an unparalleled framework for extending R with nearly 20k packages. We recently encountered an issue that highlights a missing element in the otherwise outstanding package management system. So we would like t

Re: [Rd] Detecting physical CPUs in detectCores() on Linux platforms

2023-08-07 Thread Dirk Eddelbuettel
On 7 August 2023 at 08:48, Nils Kehrein wrote: | I recently noticed that `detectCores()` ignores the `logical=FALSE` | argument on Linux platforms. This means that the function will always | return the number of logical CPUs, i.e. it will count the number of threads | that theoretically can run i

Re: [Rd] A demonstrated shortcoming of the R package management system

2023-08-07 Thread Dirk Eddelbuettel
Hi Ivan, I usually 'mentally applaud' when reading your replies on list but not here. On 7 August 2023 at 16:15, Ivan Krylov wrote: | SeuratObject 4.1.3. The breakage definitely exists, but not on the | source package level. You seem to overlook that a large part of the R Universe only works o

Re: [Rd] Detecting physical CPUs in detectCores() on Linux platforms

2023-08-07 Thread Dirk Eddelbuettel
On 8 August 2023 at 11:21, Simon Urbanek wrote: | First, detecting HT vs cores is not necessarily possible in general, Linux may assign core id to each HT depending on circumstances: | | $ grep 'cpu cores' /proc/cpuinfo | uniq | cpu cores : 32 | $ grep 'model name' /proc/cpuinfo | uniq | mo

Re: [Rd] Detecting physical CPUs in detectCores() on Linux platforms

2023-08-07 Thread Dirk Eddelbuettel
On 8 August 2023 at 13:17, Simon Urbanek wrote: | To be honest I think the motivation of this thread is dubious at best: it is a bad idea to use detectCore() blindly to specify parallelization and we explicitly say it's a bad idea - any sensible person will set it according to the demands, the

Re: [Rd] A demonstrated shortcoming of the R package management system

2023-08-08 Thread Dirk Eddelbuettel
Hi Hadley, On 8 August 2023 at 08:34, Hadley Wickham wrote: | Do you think it's worth also/instead considering a fix to S4 to avoid | this caching issue in future R versions? That is somewhat orthogonal to my point of "'some uses' of the 20 year old S4 system (which as we know is fairly widely

Re: [Rd] Wayland Display Support in R Plot

2023-10-29 Thread Dirk Eddelbuettel
On 30 October 2023 at 07:54, Paul Murrell wrote: | I am unaware of any Wayland display support. | | One useful way forward would be an R package that provides such a device | (along the lines of 'Cairo', 'tikzDevice', et al) As I understand it, it is a protocol, and not a device. Several Linu

Re: [Rd] Wayland Display Support in R Plot

2023-10-29 Thread Dirk Eddelbuettel
On 30 October 2023 at 09:20, Simon Urbanek wrote: | > On 30/10/2023, at 8:38 AM, Dirk Eddelbuettel wrote: | > On 30 October 2023 at 07:54, Paul Murrell wrote: | > | I am unaware of any Wayland display support. | > | | > | One useful way forward would be an R package that provide

Re: [Rd] Wayland Display Support in R Plot

2023-10-30 Thread Dirk Eddelbuettel
On 30 October 2023 at 13:17, Willem Ligtenberg via R-devel wrote: | I just tried it on Ubuntu 23.10. It seems to just work. | See screenshot here: https://nextcloud.wligtenberg.nl/s/jnbDT4ZiHw2JQ8H | I should be using wayland, and as far as I know I haven't done anything | special to make this w

Re: [Rd] [R] Why Rprofile.site is not built with manual installation of R devel in linux?

2023-11-10 Thread Dirk Eddelbuettel
On 10 November 2023 at 14:19, Martin Maechler wrote: | >> 2. In the installed R in /where/you/want/R/to/go, there is no even etc folder, there are only the folders bin, lib and share. That would appear to be an error in the locally installed R. What the package does has been discussed bef

Re: [Rd] Segmentation fault early in compilation of revision 85514

2023-11-12 Thread Dirk Eddelbuettel
Avi, Might be toolchain-dependent, might be options-dependent--it built fine here. Easier for you to vary option two so maybe try that? Dirk -- dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org __ R-devel@r-project.org mailing list https://st

Re: [Rd] eval(parse()) within mutate() returning same value for all rows

2023-12-29 Thread Dirk Eddelbuettel
On 29 December 2023 at 14:13, Mateo Obregón wrote: | Hi all- | | Looking through stackoverflow for R string combining examples, I found the | following from 3 years ago: | | | | The top a

Re: [Rd] eval(parse()) within mutate() returning same value for all rows

2023-12-29 Thread Dirk Eddelbuettel
On 29 December 2023 at 22:31, Mateo Obregón wrote: | Thanks Gabor, I like your solution that splits the args into separate columns, | in turn making the sprintf() call more interpretable . Well you may also like `tstrsplit()`, a gem inside data.table: > suppressMessages(library(data.table)) >

Re: [Rd] Advice debugging M1Mac check errors

2024-02-04 Thread Dirk Eddelbuettel
On 4 February 2024 at 20:41, Holger Hoefling wrote: | I wanted to ask if people have good advice on how to debug M1Mac package | check errors when you don´t have a Mac? Is a cloud machine the best option | or is there something else? a) Use the 'mac builder' CRAN offers: https://mac.r-project

Re: [Rd] Tcl socket server (tcltk) does not work any more on R 4.3.2

2024-02-20 Thread Dirk Eddelbuettel
On 20 February 2024 at 12:27, webmail.gandi.net wrote: | Dear list, | | It seems that something changed between R 4.2.3 and R 4.3 (tested with 4.3.2) that broke the Tcl socket server. Here is a reproducible example: | | - R process #1 (Tcl socket server): | | library(tcltk) | cmd <- r"( | pr

Re: [Rd] Compiling libR as a standalone C library for java+jni (-fPIC)

2024-02-20 Thread Dirk Eddelbuettel
Salut Pierre, On 20 February 2024 at 10:33, Pierre Lindenbaum wrote: | (cross-posted on SO: https://stackoverflow.com/questions/78022766) | | Hi all, | | I'm trying to compile R as a static library with the -fPIC flag so I can use it within java+JNI (is it only possible ?), but I cannot find

[Rd] RSS Feed of NEWS needs a hand

2024-03-15 Thread Dirk Eddelbuettel
Years ago Duncan set up a nightly job to feed RSS based off changes to NEWS, borrowing some setup parts from CRANberries as for example the RSS 'compiler'. That job is currently showing the new \I{...} curly protection in an unfavourable light. Copying from the RSS reader I had pointed at this s

Re: [Rd] paths capability FALSE on devel?

2024-03-27 Thread Dirk Eddelbuettel
On 27 March 2024 at 11:03, Prof Brian Ripley via R-devel wrote: | On 27/03/2024 10:28, Alexandre Courtiol wrote: | > Hi all, | > | > I don't know if it is a local issue on my hands or not, but after | > installing R-devel the output of grDevices::dev.capabilities()$paths is | > FALSE, while it i

Re: [Rd] Question regarding .make_numeric_version with non-character input

2024-03-29 Thread Dirk Eddelbuettel
On 29 March 2024 at 17:56, Andrea Gilardi via R-devel wrote: | Dear all, | | I have a question regarding the R-devel version of .make_numeric_version() function. As far as I can understand, the current code (https://github.com/wch/r-source/blob/66b91578dfc85140968f07dd4e72d8cb8a54f4c6/src/libr

Re: [Rd] RSS Feed of NEWS needs a hand

2024-04-02 Thread Dirk Eddelbuettel
On 2 April 2024 at 08:21, Duncan Murdoch wrote: | I have just added R-4-4-branch to the feeds. I think I've also fixed | the \I issue, so today's news includes a long list of old changes. These feeds can fussy: looks like you triggered many updates. Feedly currently greets me with 569 new post

Re: [Rd] RSS Feed of NEWS needs a hand

2024-04-02 Thread Dirk Eddelbuettel
On 2 April 2024 at 07:37, Dirk Eddelbuettel wrote: | | On 2 April 2024 at 08:21, Duncan Murdoch wrote: | | I have just added R-4-4-branch to the feeds. I think I've also fixed | | the \I issue, so today's news includes a long list of old changes. | | These feeds can fussy: look

Re: [Rd] RSS Feed of NEWS needs a hand

2024-04-02 Thread Dirk Eddelbuettel
On 2 April 2024 at 09:41, Duncan Murdoch wrote: | On 02/04/2024 8:50 a.m., Dirk Eddelbuettel wrote: | > On 2 April 2024 at 07:37, Dirk Eddelbuettel wrote: | > blosxom, simple as it is, takes (IIRC) filesystem ctime as the posting | > timestamp so would be best if you had a backup wit

Re: [Rd] read.csv

2024-04-16 Thread Dirk Eddelbuettel
On 16 April 2024 at 10:46, jing hua zhao wrote: | Dear R-developers, | | I came to a somewhat unexpected behaviour of read.csv() which is trivial but worthwhile to note -- my data involves a protein named "1433E" but to save space I drop the quote so it becomes, | | Gene,SNP,prot,log10p | YWH

Re: [Rd] read.csv

2024-04-16 Thread Dirk Eddelbuettel
As an aside, the odd format does not seem to bother data.table::fread() which also happens to be my personally preferred workhorse for these tasks: > fname <- "/tmp/r/filename.csv" > read.csv(fname) Gene SNP prot log10p 1 YWHAE 13:62129097_C_T 1433 7.35 2 YWHAE 4:72617557_T_TA 1

Re: [Rd] Question regarding .make_numeric_version with non-character input

2024-04-25 Thread Dirk Eddelbuettel
Hi Kurt, On 25 April 2024 at 08:07, Kurt Hornik wrote: | > Hervé Pagès writes: | | > Hi Kurt, | > Is it intended that numeric_version() returns an error by default on | > non-character input in R 4.4.0? | | Dear Herve, yes, that's the intention. | | > It seems that I can turn this into a

Re: [Rd] Patches for CVE-2024-27322

2024-04-30 Thread Dirk Eddelbuettel
On 30 April 2024 at 11:59, peter dalgaard wrote: | svn diff -c 86235 ~/r-devel/R Which is also available as https://github.com/r-devel/r-svn/commit/f7c46500f455eb4edfc3656c3fa20af61b16abb7 Dirk | (or 86238 for the port to the release branch) should be easily backported. | | (CC Luke in cas

[Rd] R-devel on Windows temporarily broken?

2024-06-13 Thread Dirk Eddelbuettel
I had a very routine CI job fail twice this morning on r-devel on Windows; the package (in fine standard form) doesn't even install under win-builder r-devel. Whereas on Linux with r86731 everything is peachy. Dirk -- dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org ___

Re: [Rd] R-devel on Windows temporarily broken?

2024-06-13 Thread Dirk Eddelbuettel
On 13 June 2024 at 15:26, Martin Maechler wrote: | >>>>> Dirk Eddelbuettel | >>>>> on Thu, 13 Jun 2024 07:20:00 -0500 writes: | | > I had a very routine CI job fail twice this morning on r-devel on Windows; | > the package (in fine standard f

Re: [Rd] R-devel on Windows temporarily broken?

2024-06-16 Thread Dirk Eddelbuettel
To bring closure to this thread, everything is back to normal at both the CRAN machine that balked as well as at windows r-devel. Thanks, Dirk -- dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org __ R-devel@r-project.org mailing list https://

Re: [Rd] [External] Non-API updates

2024-06-25 Thread Dirk Eddelbuettel
On 25 June 2024 at 12:25, Josiah Parry wrote: | Is there a link you can provide regarding the "Moving into C compliance?" It | cannot be found at https://cran.r-project.org/doc/manuals/R-exts.html. https://rstudio.github.io/r-manuals/r-exts/The-R-API.html#moving-into-c-api-compliance That's the

Re: [Rd] Printing digits.secs on data.frame?

2024-07-18 Thread Dirk Eddelbuettel
On 18 July 2024 at 12:14, John Muschelli wrote: | Is there a way to have printing data.frames with POSIXct to display | milliseconds if digits.secs is set as a default? I suspect this would require a change to the corresonding print method. | You can use the digits argument in print, such as p

[Rd] R CMD INSTALL and file permission settings

2013-06-08 Thread Dirk Eddelbuettel
to the dirchmod call as so that 'S_IWGRP' (the 00020 "write by group" permission) can be set. I would be happy to write such a patch (including documentation updates) if someone from R Core can signal willigness to look at it. Thanks, Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] R CMD INSTALL and file permission settings

2013-06-14 Thread Dirk Eddelbuettel
eha who described an elaborate workaround scheme required by the existing shortcoming. Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] R CMD INSTALL and file permission settings

2013-06-14 Thread Dirk Eddelbuettel
On 14 June 2013 at 16:56, Simon Urbanek wrote: | On Jun 14, 2013, at 4:35 PM, Dirk Eddelbuettel wrote: | > But up until right now I could not update a package a colleague installed, | > and vice versa -- unless we sudo. | > | | But you should be able to simply removing it, and re-i

Re: [Rd] R CMD INSTALL and file permission settings

2013-06-15 Thread Dirk Eddelbuettel
good point of also | combining it with umask. Re umask: Users get that wrong too often too. I think I'd prefer to add another patch to update.packages(). Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com __ R-devel@r-pro

Re: [Rd] R CMD INSTALL and file permission settings

2013-06-15 Thread Dirk Eddelbuettel
On 15 June 2013 at 07:00, Dirk Eddelbuettel wrote: | | On 15 June 2013 at 07:47, Simon Urbanek wrote: | | Because update.packages() doesn't restore the group-writable bit. Which leads us to my point that this is not what you really want. | | Ooops. I'll take another look. Done.

Re: [Rd] R CMD INSTALL and file permission settings

2013-06-15 Thread Dirk Eddelbuettel
On 15 June 2013 at 20:42, Martin Maechler wrote: | >>>>> Dirk Eddelbuettel | >>>>> on Sat, 15 Jun 2013 10:45:04 -0500 writes: | | > On 15 June 2013 at 07:00, Dirk Eddelbuettel wrote: | > | | > | On 15 June 2013 at 07:47, Simon Urbanek wro

Re: [Rd] Problem in linking a library in R package

2013-06-17 Thread Dirk Eddelbuettel
I". It would be preferabl if you could adjust its logging output (eg via configure) to refer to your package. There are many other MPI-using packages on CRAN you could study too. Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com

Re: [Rd] Calling an array in a struct in C to R

2013-06-21 Thread Dirk Eddelbuettel
strongly: Friends don't let friends use .C for new projects. The 'Writing R Extensions' manual is not entirely in sync or clear on this, but will eventually catch up. At least so I hope. Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.e

Re: [Rd] [R] How can C++ read the R object written into socket with saveRDS or save

2013-06-25 Thread Dirk Eddelbuettel
ogle.com/protocol-buffers/) which can also translate into C++, Java, Python plus a host of user-contributed bindings. For R, you will find a package RProtoBuf on CRAN. There are other, related libraries but I have worked only with Protocol Buffers. Dirk -- Dirk Eddelbuettel | e...@debian.or

Re: [Rd] R CMD INSTALL and file permission settings

2013-07-09 Thread Dirk Eddelbuettel
ite too on file and its new directories. Easier, and quite elegant. Have a go and see if it fits your bill -- no umask fiddling, no teaching all users to change habits, no inotify. Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com __

Re: [Rd] "Proper" way to use a "hidden" function in an R-package?

2013-07-13 Thread Dirk Eddelbuettel
file. Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] unmapped memory core dump with pure R program?

2013-07-14 Thread Dirk Eddelbuettel
but I thought I would let you guys know. You can install the 'r-base-core-dbg' package [1] to get the (stripped) debugging symbols back. Dirk [1] Quite generally, on Debian/Ubuntu, for package $xys the corresponding $xyz-dbg contains the corresponding debugging symbols. -- Dirk E

Re: [Rd] unmapped memory core dump with pure R program?

2013-07-14 Thread Dirk Eddelbuettel
ere, too. if I can, I could put it | up and give you an account on my machine. or I can tar it up incl the data | and put it somewhere for download. whatever you prefer. | | regards, | | /iaw | | Ivo Welch (ivo.we...@gmail.com) | | [[alternative HTML version deleted]] | | __ | R-devel@r-project.org mailing list | https://stat.ethz.ch/mailman/listinfo/r-devel -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] unmapped memory core dump with pure R program?

2013-07-14 Thread Dirk Eddelbuettel
oted to this at least the commonly required inputs to be able to replicate the issue. And no, the offer to supply 60gb of data does not commonly count as a suitable offer. A reproducible script might. Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.e

Re: [Rd] linking modules - add needed libraries

2013-07-15 Thread Dirk Eddelbuettel
tion error: file /usr/local/lib/R/library/httpuv/libs/httpuv.so: symbol sendfile64: referenced symbol not found | Error: loading failed | Execution halted | ERROR: loading failed | * removing '/usr/local/lib/R/library/httpuv' | __ | R-devel@r-project.org mailing list | https://stat.ethz.ch/mailman/listinfo/r-devel -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] unmapped memory core dump with pure R program?

2013-07-16 Thread Dirk Eddelbuettel
weighs in at about 280MB.  I will make it available to simon on Monday, | after verifying first that I can replicate it on another computer in my office. So what ever happened? Replicable or not? Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com

Re: [Rd] Building R with Cairo

2013-07-26 Thread Dirk Eddelbuettel
ported versions including the last long-term support as detailed in the README. The r-sig-debian list is there for help on matters Debian/Ubuntu too. Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com __ R-devel@r-project.org

Re: [Rd] Creating data.frame from c-language

2013-08-10 Thread Dirk Eddelbuettel
gt; The source file used above follows below. Dirk #include using namespace Rcpp; // [[Rcpp::export]] DataFrame getDataFrame(int n) { NumericVector a = rnorm(n); NumericVector b = runif(n); return DataFrame::create(Named("a") = a, Named("b&qu

Re: [Rd] Minimum requirements for package submission

2013-08-28 Thread Dirk Eddelbuettel
what changed. Having to diff the NEWS files, or glancing at commit logs via the RCS is a very poor proxy. Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Minimum requirements for package submission

2013-08-28 Thread Dirk Eddelbuettel
l to me. Dirk [1] http://lists.debian.org/debian-devel-announce/2012/09/msg6.html [2] http://www.debian.org/doc/devel-manuals#policy [3] http://www.debian.org/doc/packaging-manuals/upgrading-checklist.txt -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Minimum requirements for package submission

2013-08-28 Thread Dirk Eddelbuettel
On 28 August 2013 at 11:18, Duncan Murdoch wrote: | On 28/08/2013 10:59 AM, Dirk Eddelbuettel wrote: | > On 28 August 2013 at 09:44, Hadley Wickham wrote: | > | >> Related rant: I really wish we had "CHANGES" file, or a section in the | > | >> manuals. It is vi

Re: [Rd] libR.so: cannot open shared object file

2013-09-03 Thread Dirk Eddelbuettel
ning on a cluster. Qualified guess: you ran R CMD SHLIB on the _central / master_ node, but not the _compute_ nodes. They never got the object file. One more rigorous approach would be to wrap your function up in a package, and have each compute node load the package. Hope this helps, Dirk --

Re: [Rd] Package installation and path.package

2013-09-09 Thread Dirk Eddelbuettel
pp.bib") [1] "/usr/local/lib/R/site-library/Rcpp/doc/Rcpp.bib" R> Answer conditional on my particular Linux system, but the path is guaranteed to be valid as long as Rcpp is installed which one can ensure via Depends: from another package. Dirk -- Dirk Eddelbuettel | e...@deb

Re: [Rd] [PATCH] show vector length in summary()

2013-09-10 Thread Dirk Eddelbuettel
t of missingness. R> set.seed(42) R> describe(rnorm(100)) rnorm(100) n missing uniqueMean .05 .10 .25 .50 .75 .90 .95 100 0 100 0.03251 -1.7641 -1.2117 -0.6167 0.0898 0.6616 1.3730 1.5116 lowest : -2.993 -2.656 -2.440 -2.

[Rd] Fortune! (Re: declaring package dependencies)

2013-09-13 Thread Dirk Eddelbuettel
(uneasy?) truce, and everybody is playing (fighting?) along. And don't even get me started on the state of r-forge build services... Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com __ R-devel@r-project.org mailing list

Re: [Rd] declaring package dependencies

2013-09-13 Thread Dirk Eddelbuettel
only thereafter implemented seems somewhat appealing. Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] declaring package dependencies

2013-09-13 Thread Dirk Eddelbuettel
On 13 September 2013 at 10:38, Duncan Murdoch wrote: | On 13/09/2013 10:18 AM, Dirk Eddelbuettel wrote: | > On 13 September 2013 at 09:51, Duncan Murdoch wrote: | > | Changes are generally announced in the NEWS.Rd file long before release, | > | but R-devel is an unreleased version, so

Re: [Rd] declaring package dependencies

2013-09-13 Thread Dirk Eddelbuettel
On 13 September 2013 at 11:42, Paul Gilbert wrote: | On 13-09-13 11:02 AM, Dirk Eddelbuettel wrote: | > It's not so much Rcpp itself or my 20-ish packages but the fact that we (as | > in the Rcpp authors) now stand behind an API that also has to accomodate | > changes in R CMD

Re: [Rd] declaring package dependencies

2013-09-14 Thread Dirk Eddelbuettel
On 14 September 2013 at 09:04, Duncan Murdoch wrote: | On 13-09-13 12:00 PM, Dirk Eddelbuettel wrote: | > But the focus here should not be on my hobby package. The focus needs to be | > on how four CRAN maintainers (who do a boatload of amazing work which is | > _truly_ appreciat

Re: [Rd] declaring package dependencies

2013-09-14 Thread Dirk Eddelbuettel
On 14 September 2013 at 19:01, Duncan Murdoch wrote: | On 13-09-14 9:14 AM, Dirk Eddelbuettel wrote: | > | > On 14 September 2013 at 09:04, Duncan Murdoch wrote: | > | On 13-09-13 12:00 PM, Dirk Eddelbuettel wrote: | > | > But the focus here should not be on my hobby package. The

[Rd] R-Forge SVN commit hook to email appears to be broken

2013-09-15 Thread Dirk Eddelbuettel
It would appear that commits no longer trigger emails; for Rcpp at least we are two commits (made earlier today) ahead of what was emailed. Maybe the mail agent needs to be restarted? Many thanks for taking care of r-forge. It is appreciated. Dirk -- Dirk Eddelbuettel | e...@debian.org

Re: [Rd] Rcpp modules

2013-09-16 Thread Dirk Eddelbuettel
sole requirement. | I try to use a Rcpp module outside a Please post Rcpp questions on rcpp-devel. Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo

[Rd] R-Forge email down? (Re: R-Forge SVN commit hook to email appears to be broken)

2013-09-17 Thread Dirk Eddelbuettel
On 15 September 2013 at 13:30, Dirk Eddelbuettel wrote: | | It would appear that commits no longer trigger emails; for Rcpp at least we | are two commits (made earlier today) ahead of what was emailed. | | Maybe the mail agent needs to be restarted? | | Many thanks for taking care of r-forge

[Rd] R-Forge email down? (Re: R-Forge SVN commit hook to email appears to be broken)

2013-09-17 Thread Dirk Eddelbuettel
h for turning it back on. (And yes, this has happened once or twice before. It's just software after all...) It does indeed look like we are catching up on the queue. Cheers, Dirk | Best regards | Martin | | On 15 September 2013 at 13:30, Dirk Eddelbuettel wrote: | | | | It would a

Re: [Rd] regenerate Rscript after moving R installation

2013-09-21 Thread Dirk Eddelbuettel
r and quickly rebuild R for the new location. It is after all a cheap build (and cheaper still if you use tricks like ccache which I am a huge fan of, or 'make -j8', or ...) Dirk PS ccache is at http://ccache.samba.org/ and should be in any sane Linux distro -- Dirk Eddelbuettel | e

Re: [Rd] regenerate Rscript after moving R installation

2013-09-21 Thread Dirk Eddelbuettel
ground to the question and would be curious if there are alternatives | to rapidly regenerate the Rscript executable only. | | (My other alternative of messing with the path in a hex editor has not been successful :-) I'd go back to rebuilding for the target location. Dirk -- Dirk Edd

Re: [Rd] LENGTH function causing name conflict

2013-09-27 Thread Dirk Eddelbuettel
_' to _all_ the function names used from `Rinternals.h' and `R_ext/Error.h'. ii) reordering of headers may help In sum, and quoting from RcppCommon.h // include R headers, but set R_NO_REMAP and access everything via Rf_ prefixes #define R_NO_REMAP #include Hth, Dirk -

Re: [Rd] C++ debugging help needed

2013-10-02 Thread Dirk Eddelbuettel
e to two packages simulatenously failing to make use of namespaces. And at that point the linker appears to pick in search (link ?) order. Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] check warning with .onLoad() and setClass()

2013-10-04 Thread Dirk Eddelbuettel
s still ready, willing and able for Rcpp questions. ;-) Hth, Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] check warning with .onLoad() and setClass()

2013-10-04 Thread Dirk Eddelbuettel
d via Modules. My bad, and never mind. But as John said, .onLoad() can be replaces since he made those changes in R (and also in Rcpp). See ?setLoadAction, evalOnLoad(), ... Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com __ R-

[Rd] R 3.1.0 and C++11

2013-10-06 Thread Dirk Eddelbuettel
next R release will be a good opportunity to permit use of C++11 where compilers support it -- as a wide range of sites will already be capable of deploying it. Thanks, Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com __ R-de

Re: [Rd] R 3.1.0 and C++11

2013-10-07 Thread Dirk Eddelbuettel
e a step in the right direction. Thanks for your feedback! Dirk | Martyn | | From: r-devel-boun...@r-project.org [r-devel-boun...@r-project.org] on behalf of Dirk Eddelbuettel [e...@debian.org] | Sent: 07 October 2013 01:54 | To: R-devel org | Subject: [Rd

Re: [Rd] Question about selective importing of package functions...

2013-10-20 Thread Dirk Eddelbuettel
On 20 October 2013 at 16:20, Jonathan Greenberg wrote: | One more follow-up -- will I now need to include a library() statement in | each function? No. NAMESPACE entry, coupled with Imports: in DESCRIPTION. Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com

Re: [Rd] About integrating R inside a C++ software

2013-10-21 Thread Dirk Eddelbuettel
Tambellini William galaxysemi.com> writes: > We want to integrate R inside our software in order to use mainly the > engine (usual stats as mean, sigma, Pearson, outlier detection, CPA, > multivariate, ...) and probably later the chart solution. > Of course we don't want to temporary write t

Re: [Rd] advise on Depends

2013-10-25 Thread Dirk Eddelbuettel
lted to loading "methods". And as r is a small and fully compiled binary, it still starts up faster than Rscript by a nice margin even though it has to load the "methods" package. But who cares about 200 msec. :) Dirk -- Dirk Eddelbuettel | e...@debian

Re: [Rd] Where to drop a python script?

2013-10-30 Thread Dirk Eddelbuettel
writing below a directory inst/perl/ -- and I think there are more packages doing this. Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] How to make an R package that uses Boost.Thread, qualified to be published on CRAN or shared by the most

2013-11-03 Thread Dirk Eddelbuettel
/19651954/is-it-possible-to-build-an-r-package-which-use-rcpp-and-boost-thread-on-http), and I also asked at rcpp-devel (http://lists.r-forge.r-project.org/pipermail/rcpp-devel/2013-November/006777.html). Dirk Eddelbuettel suggested me ask here. After some tries on win-builder and some research

Re: [Rd] Determining files opened by an R session

2013-11-04 Thread Dirk Eddelbuettel
figuration parameters, I would want to lean heavily on the operating | systems tools for things like this rather than rely on parsing your R code | looking for specific file access. Yep. Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelb

Re: [Rd] Embedded R Fails When Run on LSF Queue System

2013-11-10 Thread Dirk Eddelbuettel
char *R_argv_opt[] = {"--vanilla", "--slave"}; int R_argc = (sizeof(R_argv) - sizeof(R_argv_opt) ) / sizeof(R_argv[0]); [...] /* some logic to add R_argv_opt parts to R_argv omitted (/ [...] Rf_initEmbeddedR(R_argc, R_argv);

Re: [Rd] Embedded R Fails When Run on LSF Queue System

2013-11-10 Thread Dirk Eddelbuettel
e you start multithreading, never ever call anything that could touch R, thne release the mutex when you're done and continue single-threaded. I know of no other sane way. Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com

Re: [Rd] dynamic lists at C level

2013-11-26 Thread Dirk Eddelbuettel
d then have it creates lists of length 2 and 4, respectively: R> library(Rcpp) R> cppFunction("List adrian(int n) { return List(n); } ") R> adrian(2) [[1]] NULL [[2]] NULL R> adrian(4) [[1]] NULL [[2]] NULL [[3]] NULL [[4]] NULL R> Hope this helps, Dirk -- D

Re: [Rd] dynamic lists at C level

2013-11-26 Thread Dirk Eddelbuettel
ing packages is often a good idea. If you can stomach reading other people's code ;-) Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] inflate zlib compressed data using base R or CRAN package?

2013-11-27 Thread Dirk Eddelbuettel
3 24 24 16.0 72 38.3 25 25 16.3 77 42.6 26 26 17.3 81 55.4 27 27 17.5 82 55.7 28 28 17.9 80 58.3 29 29 18.0 80 51.5 30 30 18.0 80 51.0 31 31 20.6 87 77.0 R> Hope this helps, Dirk -- Dirk Eddelbuettel | e...

Re: [Rd] inflate zlib compressed data using base R or CRAN package?

2013-11-27 Thread Dirk Eddelbuettel
On 27 November 2013 at 18:38, Dirk Eddelbuettel wrote: | | On 27 November 2013 at 23:49, Dr Gregory Jefferis wrote: | | I have a binary file type that includes a zlib compressed data block (ie | | not gzip). Is anyone aware of a way using base R or a CRAN package to | | decompress this kind of

Re: [Rd] inflate zlib compressed data using base R or CRAN package?

2013-11-27 Thread Dirk Eddelbuettel
packages deal with that too in the context of NumPy files and has examples of how to transparently switch between files which are, or aren't, compressed by gzip. Sorry for wasting bandwidth. I was just trying to help. Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuette

Re: [Rd] R 3.1.0 and C++11

2013-12-02 Thread Dirk Eddelbuettel
l and incremental changes. They are appreciated. Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Depending/Importing data only packages

2013-12-07 Thread Dirk Eddelbuettel
t one a virtual package providing a catch-all fallback. The R package does similar things to pick one of several blas and lapack packages: Depends: zip, unzip, libpaper-utils, xdg-utils, \ libblas3 | libblas.so.3 | libatlas3-base, [...] \ liblapack3 | liblapack.so.3 | libatlas3-base

Re: [Rd] How to package cran package into a debian package so that it can be installed using apt-get

2013-12-09 Thread Dirk Eddelbuettel
. Consider the r-sig-debian list, or one of the Debian lists. Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Passing a large array to .Call by reference

2014-01-13 Thread Dirk Eddelbuettel
reference? Staring at gc() is at approximate at best. R has memory profiling, see Writing R Extensions for how to use it. There is no code in your post, so not much else I can comment on. Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com

Re: [Rd] rbinom in RcppArmadillo?

2014-01-14 Thread Dirk Eddelbuettel
rbinom(n,1,0.5));}') R> set.seed(42); nb(4) # draw 4 via C++ [1] 1 1 0 1 R> set.seed(42); rbinom(4,1,0.5) # reset seed, draw 4 from R [1] 1 1 0 1 R> Dirk -- Dirk Eddelbuettel | e...@debian.org | http:/

Re: [Rd] Linking to native routines in other packages

2014-01-22 Thread Dirk Eddelbuettel
;sampler' not provided by package 'stochvol' | | Can somebody give me a hint what I am missing? Working examples I know of: 'xts' importing two functions from 'zoo' 'RcppXts' importing approx. ten functions from 'xts' Ma

<    1   2   3   4   5   6   7   8   9   10   >