Re: [Rd] package NAMESPACE question

2014-01-25 Thread Dirk Eddelbuettel
| | [[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 _

Re: [Rd] package NAMESPACE question

2014-01-25 Thread Dirk Eddelbuettel
ed base packages: | | [1] stats     graphics  grDevices utils     datasets  methods   base   |    | | other attached packages: | | [1] foo_1.0 | | | Thanks, | | Axel.   | | | | | | | | | On Sat, Jan 25, 2014 at 4:32 PM, Uwe Ligges | wrote: | | | | On 25.01.2014 14

Re: [Rd] $new cannot be accessed when running from Rscript and methods package is not loaded

2014-02-10 Thread Dirk Eddelbuettel
ss") print(class(someClass)) edd@max:~$ For Rscript, you still need to load it explicitly like any other packages you want to use. Dirk PS New littler release pending in a few days or weeks. The Github repo is current and working. -- Dirk Eddelbuettel | e...@debian.org | http://dirk.edd

Re: [Rd] contrib.url in non-interactive mode

2014-02-14 Thread Dirk Eddelbuettel
d.packages') #repos <- "http://cran.us.r-project.org"; repos <- "http://cran.r-project.org"; ## this makes sense on Debian where no packages touch /usr/local lib.loc <- "/usr/local/lib/R/site-library" install.packages(argv, lib.loc, repos) edd@max:~$

Re: [Rd] Bundling vendor library inside a package

2014-03-09 Thread Dirk Eddelbuettel
iques to hide the library. It work as long as you never change the underlying path. Which is a fine assumption as long you use the same R installation path -- which is quite likely. Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com __

Re: [Rd] Fwd: C code and DLL file in the package

2014-03-13 Thread Dirk Eddelbuettel
re unlikely to get specific help. You mix this, but it is an advanced topic, and it is somewhat outside the supported range of endeavours with R, you are on your own. Google for 'mixing MinGW gcc and Visual Studio' and other topics. Good lu

Re: [Rd] How to convert time_t to R date object

2014-03-16 Thread Dirk Eddelbuettel
7;s date down and up correctly. See 'Writing R Extensions' for the details at the C level. See the Rcpp documentation (and, if I may, my book) for details on Rcpp if that interests you. 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 convert time_t to R date object

2014-03-17 Thread Dirk Eddelbuettel
, Bill Wang wrote: | | Hi Dirk, | | Thanks for your reply, I neede convert time_t to R type in C code, can not | use Rcpp. Maybe Rcpp source code could help me. | | Cheers, | Bill | | | 2014-03-16 22:55 GMT+08:00 Dirk Eddelbuettel : | | > | > On 16 March 2

Re: [Rd] How to convert time_t to R date object

2014-03-17 Thread Dirk Eddelbuettel
en int and time_t. Then set the class of the int variable to Date type. 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] [RFC] A case for freezing CRAN

2014-03-19 Thread Dirk Eddelbuettel
wants to organize source packages. But that is just a matter of stacking them in directory trees and calling setwd("/path/to/root/of/your/repo/version") tools::write_PACKAGES(".", type="source")' to create PACKAGES and PACKAGES.gz. Dirk -- Dirk E

Re: [Rd] The case for freezing CRAN

2014-03-20 Thread Dirk Eddelbuettel
te. o Overall, I would tend to think that our CRAN standards of releasing with tests, examples, and checks on every build and release already do a much better job of keeping things tidy and workable than in most if not all other related / similar open source projects. I would of

Re: [Rd] The case for freezing CRAN

2014-03-21 Thread Dirk Eddelbuettel
to Rcpp itself, turns out that another thread participant just a need for exactly that script yesterday. 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] Docker versus Vagrant for reproducability - was: The case for freezing CRAN

2014-03-22 Thread Dirk Eddelbuettel
ite useful at work. 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] internal string comparison (Scollate)

2014-03-26 Thread Dirk Eddelbuettel
s in their Rhpc package. I am using them (in yet another copy) in my unfinished Redis package in order to get to serialization from C++. Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com __ R-devel@r-project.org mailing

Re: [Rd] internal string comparison (Scollate)

2014-03-27 Thread Dirk Eddelbuettel
n less pleasant) answer is to build a new package which links to, (or worse yet, embeds) libicu. As you want ICU behaviour, you will need ICU code. Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com __ R-devel@r-project.o

Re: [Rd] CXX_STD and configure.ac in packages

2014-03-30 Thread Dirk Eddelbuettel
nfigure dance unless you really feel you must have it. 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] Timezone warnings on package install in R-alpha

2014-04-03 Thread Dirk Eddelbuettel
ormat(Sys.time(), tz="America/New_York") [1] "2014-04-03 08:30:28.771662" R> format(Sys.time(), tz="Europe/Berlin") [1] "2014-04-03 14:30:41.211835" R> Sys.getenv("TZ") [1] "" R> As you can see, I do not set a TZ variable a

Re: [Rd] ! LaTeX Error: File `zi4.sty' not found.

2014-04-10 Thread Dirk Eddelbuettel
;Debian stable" or "Ubuntu LTS" variants.) 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 3.1.0 and C++11

2014-04-10 Thread Dirk Eddelbuettel
On 2 December 2013 at 07:04, Dirk Eddelbuettel wrote: | | Following up on the thread spawned a while back, I just wanted to say that I | appreciate today's RSS serving of R-devel NEWS: | |CHANGES IN R-devel PACKAGE INSTALLATION | |There is _experimental_ support for compiling

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

2014-04-10 Thread Dirk Eddelbuettel
needs one of the extensions: -std=c++11 where available, -std=c++0x on older systems. And eg Martin Morgan's recent question of how to use 'unordered_map' should work the same way: just turn on C++11 and depend on R 3.1.0. That header is also provided at least as far back a

Re: [Rd] Please make Pre-3.1 read.csv (type.convert) behavior available

2014-04-26 Thread Dirk Eddelbuettel
rovides the old behaviour if your life depends upon it. Or you could real serialization rather than relying on the crutch that is csv. 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] Questions on extending Rcpp wrap and as with templates

2014-05-02 Thread Dirk Eddelbuettel
as(SEXP); | | Thanks for help | Florian | | [[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.co

Re: [Rd] Writing my first CRAN vignette

2014-05-18 Thread Dirk Eddelbuettel
cassionally even manages to get there). And for that form of written communication, I fear you will have to pry latex from my cold dead hands. Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com __ R-devel@r-project.org mail

Re: [Rd] setting environmental variable inside R function to call C function

2014-06-03 Thread Dirk Eddelbuettel
un" was not affected. | > | > Does anyone know why and how to correctly set the env var for subsequent | > functions? | > | > Thanks, | > BW | > | > [[alternative HTML version deleted]] | > | > __ | > R-devel@r-project.org mailing list | > https://stat.ethz.ch/m

Re: [Rd] Compiling R-3.1.0 on debian with libpng/libjpeg

2014-06-26 Thread Dirk Eddelbuettel
On 26 June 2014 at 12:10, Prof Brian Ripley wrote: | On 26/06/2014 07:46, Preussner, Jens wrote: | > Dear r-developers, | > | > I currently face an issue while compiling R from source on a debian wheezy. When running the configure script (particularly with --enable-R-shlib --prefix=/packages/R/3

Re: [Rd] Error when compiling R with openblas

2014-07-01 Thread Dirk Eddelbuettel
On 1 July 2014 at 12:00, Alexander Braumann wrote: | I tried to compile R with openblas on a ubuntu 12.04 machine. I have to | say that I normally use the package system and that I have no experience | with compiling R. You do not need to do that. Just install the existing OpenBLAS package via

[Rd] [OT] Re: a question about optim.R and optim.c in R

2014-07-08 Thread Dirk Eddelbuettel
(flagged thread as OT as this is now orthogonal to the OP's question) On 8 July 2014 at 08:41, Prof J C Nash (U30A) wrote: | Side comment: At UseR last week, Yihui Xie sat with me and we | implemented a Fortran language engine for knitr. It looks like a Pascal | one may also be possible, and mayb

Re: [Rd] arguments to .Call(), .External should be read-only?

2014-07-08 Thread Dirk Eddelbuettel
It's one of my favourite Rcpp puzzles: R> cppFunction('bool foo(NumericVector x) { x = 2 * x; return(true); }') R> x <- 1:4 # note that x is now an int vector R> foo(x) # so this casts to numeric --> copy [1] TRUE R> x [1] 1 2 3 4 # s

Re: [Rd] Question: Publishing R/S objects with WebServices (SOAP/WSDL)

2014-07-22 Thread Dirk Eddelbuettel
On 22 July 2014 at 07:21, Kurt Schallitz wrote: | Can anyone tell me if there is a package which will allow me to write a | package in R, then publish the package using WebServices? The idea is that | I want to be able to pass a data set into R, have R perform the | calculations, then send the res

Re: [Rd] Multiple -g flags in R CMD SHLIB

2014-07-25 Thread Dirk Eddelbuettel
On 25 July 2014 at 15:30, Alan Benson wrote: | Does anybody know why two "-g" flags appear in the call to gcc in R CMD | SHLIB | | Example: | | gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic *-g* -O2 | -fstack-protector --param=ssp-buffer-size=4 -Wformat | -Werror=format-security -D_FOR

Re: [Rd] Can't use custom package on windows 64-bit

2014-08-06 Thread Dirk Eddelbuettel
On 6 August 2014 at 09:47, Evan Farrell wrote: | I've been developing a package to use S3 bucket on AWS by using libs3 code. | I have two problems. The first is, by standard, it will attempt to | install i386 and x64 if I don't have a configure.win. | | The problem with this is that while every

Re: [Rd] Is using devtools::release no longer allowed?

2014-08-19 Thread Dirk Eddelbuettel
Hi Richie, On 19 August 2014 at 16:28, Richard Cotton wrote: | I recently tried to submit a package to CRAN using the release | function in the devtools package and got the response: | | > The policies asked you to use the webform: do so in future. | | I think that the relevant line in the poli

Re: [Rd] Is using devtools::release no longer allowed?

2014-08-19 Thread Dirk Eddelbuettel
On 19 August 2014 at 19:51, Uwe Ligges wrote: | So to all listeners: Future submission by means of the webform, please. I hereby offer one beer to the first person who shows me how to use RSelenium to drive the webform from a script. Dirk (who used the webform in textmode earlier today over a s

Re: [Rd] Is using devtools::release no longer allowed?

2014-08-19 Thread Dirk Eddelbuettel
On 20 August 2014 at 00:05, Jeroen Ooms wrote: | On Tue, Aug 19, 2014 at 8:14 PM, Dirk Eddelbuettel wrote: | > | > I hereby offer one beer to the first person who shows me how to use RSelenium | > to drive the webform from a script. | | Below is a simple script that simulates the

Re: [Rd] Unable to compile R 3.1.3 under GCC 4.1.2 (Red Hat 4.1.2-51)

2014-09-01 Thread Dirk Eddelbuettel
On 1 September 2014 at 12:58, Titus Barik wrote: | I'm unable to compile R under an HPC system (which like many HPC systems | doesn't always have the latest and greatest software). The version of | GCC is 4.1.2 under CentOS 5.7. With all due respect, that gcc release is from Feb 2007 [1]. You

Re: [Rd] Rcpp and dot in package name

2014-09-03 Thread Dirk Eddelbuettel
Stefan, R-devel is the wrong list. Please subscribe to rcpp-devel and ask there. Short tip: Don't use a dot in the name. See the 260+ packages depending on Rcpp listed at the bottom of eg http://cran.rstudio.com/web/packages/Rcpp/index.html -- I essentially see no dot there. Regards, Dirk

Re: [Rd] lbfgsb from C/C++

2014-09-07 Thread Dirk Eddelbuettel
On 7 September 2014 at 12:30, axionator wrote: | I would like to call R's lbfgsb function from my C/C++ code by including | R_ext/Applic.h and linking against libR. | Currently, I am allocating memory for x (and the other input arrays for | lbfgsb) in my C/C++ code via malloc/new. However, this gi

Re: [Rd] lbfgsb from C/C++

2014-09-07 Thread Dirk Eddelbuettel
1) Your question is no longer related to lbfgsb. It is common to start a new thread with a new Subject: for new questions. 2) You do not show your name or affiliation. That is generally frowned upon around here. 3) Your question was about RInside / Rcpp. We prefer those questions over on the

Re: [Rd] Request for an 'R CMD check' on Solaris10

2014-09-11 Thread Dirk Eddelbuettel
Hi Anthony, Sadly I do not have access to Solaris so I cannot help you. Worse yet, I am in need of a similar issue for one of my CRAN packages. So if someone reaches out to you and seems eager to help some more I could do with another small test on Solaris. Best of luck -- I hope someone can

Re: [Rd] last user argument missing from Rscript --verbose

2014-09-21 Thread Dirk Eddelbuettel
On 20 September 2014 at 19:55, Harris A. Jaffee wrote: | Terrific, and I appreciate your thoughts and encouragement. | | So, getting back on-list, I propose a backward-incompatible change, with | or without --verbose, that the --args be included in the 'av' array, and | passed to R, only if there

Re: [Rd] Package Rcpp: Question conerning source code of cpp files and related question

2014-09-30 Thread Dirk Eddelbuettel
On 30 September 2014 at 13:00, Martin Spindler wrote: | I am trying to use Rcpp to write some files in C++ for use in R. Please subscribe to rcpp-devel, and post on that list. Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org __

Re: [Rd] Trouble installing Rcpp on AIX - missing "execinfo.h"

2014-10-31 Thread Dirk Eddelbuettel
On 30 October 2014 at 04:13, Mike Beddo wrote: | Greetings, | | When I try "install.packages('Rcpp')" it fails when compiling api.cpp (line 39). This is Rcpp 0.11.3. I searched my filesystem, and indeed I do not have execinfo.h anywhere. After some effort, I got R build on AIX. Now I am trying

Re: [Rd] Trouble installing Rcpp on AIX - missing "execinfo.h"

2014-11-01 Thread Dirk Eddelbuettel
Hi Mike, Thanks for the follow-up -- if you glance at src/api.cpp you'll see that we already conditionally exclude execinfo.h on a number of other platforms. I'll look up the canonical define for Aix and will check back with you to test this. I'm currently at a workshop so this may take a day or

Re: [Rd] Trouble installing Rcpp on AIX - missing "execinfo.h"

2014-11-01 Thread Dirk Eddelbuettel
Mike, On 1 November 2014 at 11:36, Dirk Eddelbuettel wrote: | Thanks for the follow-up -- if you glance at src/api.cpp you'll see that we | already conditionally exclude execinfo.h on a number of other platforms. I'll | look up the canonical define for Aix and will check back with y

Re: [Rd] Linking to the BH package introduces CRAN warnings

2014-11-04 Thread Dirk Eddelbuettel
On 4 November 2014 at 14:37, kaveh wrote: | Dear all, | | I'm working on a project that links to the BH package | (http://cran.r-project.org/web/packages/BH/index.html). | | My packages doesn't call entry points which might terminate R nor | write to stdout/stderr instead of to the console. | |

Re: [Rd] Linking to the BH package introduces CRAN warnings

2014-11-04 Thread Dirk Eddelbuettel
Gentlemen, On 4 November 2014 at 23:36, kaveh wrote: | Dear Hadley, | | Thank you for this information, maybe the CRAN gods | will look favourably on this case too, You seemed to have missed a point my earlier email tried to stress: Inclusion of BH does not lead to the warning. All this depe

Re: [Rd] Linking to the BH package introduces CRAN warnings

2014-11-05 Thread Dirk Eddelbuettel
th.h header file from R. Which has functionality that Rcpp provides to you in scalar and vector form. And there are probably several dozen examples of using the R distribution functions from Rcpp. So this is _precisely_ what I suggested several mails ago: do your homework, identify which header is

Re: [Rd] Linking to the BH package introduces CRAN warnings

2014-11-05 Thread Dirk Eddelbuettel
On 5 November 2014 at 13:54, kaveh wrote: | Dear, | | I was expecting this reaction. | | Please do not get caught up in the details of the examples, | which I have tried to make as simple as possible for your | benefit. Well, to be perfectly honst, there you failed. No need to carry RcppEigen

Re: [Rd] Linking to the BH package introduces CRAN warnings

2014-11-05 Thread Dirk Eddelbuettel
On 5 November 2014 at 14:11, Romain Francois wrote: | > Le 5 nov. 2014 à 13:43, Dirk Eddelbuettel a écrit : | > You are NOT forced or required to use the Boost distributions header __as R | > comes with the equivalent functionality__ via the Rmath.h header file from R. | &g

Re: [Rd] testing dontrun examples

2014-11-27 Thread Dirk Eddelbuettel
On 27 November 2014 at 11:23, Paul Gilbert wrote: | On 14-11-26 05:49 PM, Duncan Murdoch wrote: | > On 26/11/2014, 1:45 PM, Paul Gilbert wrote: | >> Wishlist: what I would really like is R CMD check --run-dontrun pkg | > | > We have that in R-devel, so everyone will have it next April, but there

Re: [Rd] Bundling system dependencies in binary packages

2014-12-02 Thread Dirk Eddelbuettel
On 2 December 2014 at 18:34, Louis Aslett wrote: | I've been hunting round for the accepted method of bundling system | dependencies into binary packages. | | For example, there are some CRAN packages (e.g. gmp, RcppArmadillo, | ...) which don't require the system dependencies be installed for th

[Rd] package.skeleton leads to R CMD check aborting

2014-12-11 Thread Dirk Eddelbuettel
The package.skeleton() base function is useful for creating empty packages. The fact that the help files generated by the function cause errors was long an annoyance, but I noticed last month (while preparing for a workshop on R and packages) that it creates packages which cause 'R CMD check ...'

Re: [Rd] how useful could be a fast and embedded database for the R community?

2014-12-24 Thread Dirk Eddelbuettel
On 24 December 2014 at 10:49, joanv wrote: | I've already done some benchmarks, again leveldb and sqlite, are quite slow | compared with my release. | | They cannot be used very intensively in a huge computation, because the low | performance. | | Yes, billions ( American ones : thousands of mil

Re: [Rd] call r function in c++ application

2014-12-30 Thread Dirk Eddelbuettel
On 30 December 2014 at 16:38, blesson thomas wrote: | hi, | Am a software developer having 4 yr experience in c++.I want to | integrate R environment in my c++ application,please help me to do so. It's been done, and there is an entire framework for you including examples for - standard u

Re: [Rd] Potential cross-platform package building issue

2015-01-03 Thread Dirk Eddelbuettel
On 3 January 2015 at 13:49, Steven Ranney wrote: | I am using 32-bit R 3.1.2 on Windows 7. | | I recently conducted an `R CMD check --as-cran` on a recently-developed | package and received only the 'New submission' note. Research on | StackOverflow and on R-devel suggested this could be ignored.

Re: [Rd] Potential cross-platform package building issue

2015-01-03 Thread Dirk Eddelbuettel
Steven, Your error goes away when you write your \deqn{} in one line: \deqn{\widehat{R_1} = \frac{\sum\limits_{i=1}^n{c_i/n}}{\sum\limits_{i=1}^n{L_i/n}}} [...] \deqn{\widehat{E} = T\sum\limits_{i=1}^n{\frac{1}{w_{i}}}\sum\limits_{j=1}^m{\frac{e_{ij}}{\pi_{j The quoted text here still

Re: [Rd] latex warning

2015-01-09 Thread Dirk Eddelbuettel
On 9 January 2015 at 11:46, Martin Maechler wrote: | (I've seen .. but not investigated other cases where Travis | would barf about things that were fine for me). I often file that under "Travis has a screw loose for sticking with Ubuntu 12.04". It's a fantastic service, but it has its warts.

[Rd] Request for help with UBSAN and total absense of CRAN response

2015-01-13 Thread Dirk Eddelbuettel
CRAN has a package of mine in upload limbo because it failed UBSAN. I am not entirely ignorant on the topic of sanitizers and SAN / ASAN / UBSAN; we created not one but two Docker containers with ASAN and USBAN: https://registry.hub.docker.com/u/rocker/r-devel-san/ https://registry.hub.doc

Re: [Rd] Request for help with UBSAN and total absense of CRAN response

2015-01-13 Thread Dirk Eddelbuettel
On 13 January 2015 at 08:21, Dan Tenenbaum wrote: | Where should the package source be downloaded from? I see it in CRAN (but presumably the latest version that causes the issue is not yet downloadable) and in github. The "presumable" assumption is incorrect AFAIK. The error should presumably

Re: [Rd] Help finding source of warnings

2015-01-18 Thread Dirk Eddelbuettel
On 18 January 2015 at 09:03, Prof J C Nash (U30A) wrote: | I've been implementing a wrapper to the 2011 Fortran version of | L-BFGS-B. In optim(), R uses a C translation of a Fortran version (the | version number does not appear to be documented by the original | authors). The authors of the or

[Rd] [Resolved] (Was: Request for help with UBSAN and total absense of CRAN) response

2015-01-18 Thread Dirk Eddelbuettel
I would like to express my deepest gratitude to the CRAN Maintainers for keeping up with their perfect record of never responding to questions from mere mortals like myself. The ensuing utter and complete silence allowed me to work with a much higher concentration level. More seriously, I owe a b

Re: [Rd] [PATCH] Makefile: add support for git svn clones

2015-01-19 Thread Dirk Eddelbuettel
On 19 January 2015 at 17:11, Duncan Murdoch wrote: | The people who would have to maintain the patch can't test it. I don't understand this. The patch, as we may want to recall, was all of +GIT := $(shell if [ -d "$(top_builddir)/.git" ]; then \ +echo "git"; fi) + and -

Re: [Rd] Programming Tools CTV

2015-01-23 Thread Dirk Eddelbuettel
On 23 January 2015 at 05:55, Hadley Wickham wrote: | I'd strongly second the notion of using github. The biggest advantage | is that others can easily contribute changes through pull requests | which lifts much of the burden from your shoulders. That's "The Theory". "The Practice" for eight week

Re: [Rd] invoking R function in C++ in parallel

2015-01-31 Thread Dirk Eddelbuettel
On 31 January 2015 at 18:30, Zheng Da wrote: | I'm writing an R extension in C++. In the extension, I want to invoke | an R function directly and it works when I use Rcpp in the serial | code. But what I really want is to invoke the R function in parallel | with openmp. When I do so, I got segment

Re: [Rd] invoking R function in C++ in parallel

2015-01-31 Thread Dirk Eddelbuettel
On 31 January 2015 at 19:29, Gábor Csárdi wrote: | On Sat, Jan 31, 2015 at 7:05 PM, Dirk Eddelbuettel wrote: | [...] | | - either work in something like OpenMP and run in multiple threads that |    remain /completely/ shielded from R, ie no R calls, and not even R data |    types as

Re: [Rd] Which function can change RNG state?

2015-02-08 Thread Dirk Eddelbuettel
On 7 February 2015 at 19:52, otoomet wrote: | random numbers. For instance, can I be sure that | set.seed(0); print(runif(1)); print(rnorm(1)) | will always print the same numbers, also in the future version of R? There Yes, pretty much. I've been lurking here over fifteen years, and while I

Re: [Rd] Color Coding in R-devel/NEWS

2015-02-18 Thread Dirk Eddelbuettel
On 18 February 2015 at 14:44, Bryan Hanson wrote: | On this feed, which I think is the place we should monitor upcoming changes: | | http://developer.r-project.org/blosxom.cgi/R-devel/NEWS | | What is the significance of the green and pink highlighting? Same as in some code diff tools: green i

Re: [Rd] RStudio Calling C++ Visual Studio DLL

2015-02-21 Thread Dirk Eddelbuettel
On 21 February 2015 at 10:45, Alex Restrepo wrote: | I'm a newbie to R and I am interested | in seeing a simple example of calling a 3rd party Visual Studio generated DLL | from RStudio. Does anyone have a simple example which also walks through the | preliminary steps of setting up the INCLUDE pa

Re: [Rd] The Environment variables settings in bin/R, why do they ignore environment variables of the same name?

2015-02-26 Thread Dirk Eddelbuettel
On 26 February 2015 at 16:20, Saptarshi Guha wrote: | In installation/R/bin/R i notice | | 1. R_HOME_DIR is hard coded e.g. | R_HOME_DIR=/usr/local/lib64/R | | 2. It ignores R_HOME_DIR | | echo "WARNING: ignoring environment value of R_HOME" | | 3. R_SHARE_DIR, R_INCLUDE_DIR and R_DOC_DIR are

Re: [Rd] R-devel does not update the C++ returned variables

2015-03-02 Thread Dirk Eddelbuettel
On 2 March 2015 at 09:09, Duncan Murdoch wrote: | I generally recommend that people use Rcpp, which hides a lot of the | details. It will generate your .Call calls for you, and generate the | C++ code that receives them; you just need to think about the real | problem, not the interface. It h

Re: [Rd] R-devel does not update the C++ returned variables

2015-03-02 Thread Dirk Eddelbuettel
On 2 March 2015 at 16:37, Martin Maechler wrote: | | > On 2 March 2015 at 09:09, Duncan Murdoch wrote: | > | I generally recommend that people use Rcpp, which hides a lot of the | > | details. It will generate your .Call calls for you, and generate the | > | C++ code that receives them; you ju

Re: [Rd] R with Array Hashes

2015-03-06 Thread Dirk Eddelbuettel
Jeff, Nice writeup and promising idea. From the "gimme numbers" department: - do you pass the R regression tests? - what sort of speedups do you see on which type of benchmarks? When you asked about benchmark code on Twitter, I shared the somewhat well-known (but no R ...) http://benchmarks

Re: [Rd] Best way to handle dependency on non-CRAN package / large data package?

2015-03-12 Thread Dirk Eddelbuettel
On 12 March 2015 at 08:41, arilamst...@gmail.com wrote: | But I don't know if this is the best way to do this, or if there is | anything else to consider. I have never had to manage package dependencies | outside of CRAN, and have always thought of CRAN as being a "closed | ecosystem", where there

Re: [Rd] Best way to handle dependency on non-CRAN package / large data package?

2015-03-12 Thread Dirk Eddelbuettel
On 12 March 2015 at 09:40, arilamst...@gmail.com wrote: | Thanks Dirk. I'm looking at it now.  | | At first glance your documentation brings up a good limitation of simply | telling users to type "devtools::install_github()". Namely, what happens when | the census bureau updates their shapefiles,

Re: [Rd] Best way to handle dependency on non-CRAN package / large data package?

2015-03-12 Thread Dirk Eddelbuettel
Ari, On 12 March 2015 at 14:29, arilamst...@gmail.com wrote: | I'm interested in pursing this but I haven't been able to figure how to to make | it work.  Here's what I have so far: | | install.packages("drat") | library(drat) | addRepo("arilamstein") | | I (obviously) have a copy of the choro

Re: [Rd] [Rcpp-devel] Windows gcc toolchain for R 3.2.0

2015-03-18 Thread Dirk Eddelbuettel
Duncan (and everybody else working on it behind the curtains), Thanks for the update. All the work is truly appreciated, and it is really too bad that we turned to C++ testing so late in the process. But ensuring release quality is paramount, so withholding g++ 4.9.* on Windows til these issues

Re: [Rd] About removing zlib from R-devel

2015-03-26 Thread Dirk Eddelbuettel
On 26 March 2015 at 07:47, Gábor Csárdi wrote: | Dear All, | | zlib has been removed from R-devel src/extra recently, and building R | requires zlib >= 1.2.5. Ubuntu 12.04 LTS (also used on Travis CI) only has | 1.2.3. | | This means that the next version of R will probably not available on Ubun

Re: [Rd] alternate licensing for package data?

2015-04-22 Thread Dirk Eddelbuettel
On 22 April 2015 at 11:34, Roger Bivand wrote: | While I agree with Martyn with respect to code, documentation, and | vignettes, the point Ben raises is relevant and not obvious. Data sets in | say GLP-licensed packages are on occasion challenged by Debian packagers Not generally the packagers (w

[Rd] CRAN submit page down

2015-04-23 Thread Dirk Eddelbuettel
Andrie noticed that first, and I can confirm: from our end, it looks as if the backend to http://cran.r-project.org/submit.html is currently down. Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org __ R-devel@r-project.org mailing

Re: [Rd] install.packages no longer respects quiet = TRUE ?

2015-04-28 Thread Dirk Eddelbuettel
On 28 April 2015 at 11:21, Hadley Wickham wrote: | > install.packages("plyr", quiet = T) | | trying URL 'http://cran.rstudio.com/bin/macosx/mavericks/contrib/3.2/plyr_1.8.2.tgz' | Content type 'application/x-gzip' length 855795 bytes (835 KB) | ==

Re: [Rd] Alternative for wildcard gnu extension in Makevars

2015-05-13 Thread Dirk Eddelbuettel
On 13 May 2015 at 17:27, Jan van der Laan wrote: | | I have some cpp-files from another library (boost) in a subdirectory | in my src directory (src/boost_src). I include these using the | following two lines in my Makevars: | | SOURCES = $(wildcard *.cpp boost_src/*.cpp) | OBJECTS = $(SOURC

Re: [Rd] Alternative for wildcard gnu extension in Makevars

2015-05-13 Thread Dirk Eddelbuettel
On 13 May 2015 at 10:10, Kevin Ushey wrote: | One other solution that's only a little crazy: you could have a R | function within your package that generates the appropriate (portable) | Makevars, and within the package `configure` script call that | function. For example" | | R --vanilla --s

Re: [Rd] example fails during R CMD CHECK but works interactively?

2015-05-15 Thread Dirk Eddelbuettel
On 15 May 2015 at 07:13, Hadley Wickham wrote: | Make the example print out Sys.getenv() and then manually inspect? On the systems I usesystem("env") is more efficient as it gets you all at once. | Otherwise, you'll need to debug the code by adding print statements. | Something clearly

Re: [Rd] example fails during R CMD CHECK but works interactively?

2015-05-15 Thread Dirk Eddelbuettel
On 15 May 2015 at 07:47, Dirk Eddelbuettel wrote: | | On 15 May 2015 at 07:13, Hadley Wickham wrote: | | Make the example print out Sys.getenv() and then manually inspect? | | On the systems I usesystem("env") is more efficient as it gets you | all at once. Ahh, yes, and I

Re: [Rd] That 'make check-all' problem with the survival package

2015-05-16 Thread Dirk Eddelbuettel
On 16 May 2015 at 12:11, Hin-Tak Leung wrote: | The quickest fix is to add cmprsk to the recommended list , and that's is an R-devel issue. Given that the set of recommended packages seems to change about once a decade (give or take a few years as measurement error on my side) I am not sure I ag

Re: [Rd] NEWS.md support on CRAN

2015-05-23 Thread Dirk Eddelbuettel
On 23 May 2015 at 08:14, Duncan Murdoch wrote: | I think the harder problem is display. CRAN can run pandoc, but can | users who install the package from source? I would expect some obscure | platforms (like Windows ;-) would not have it available. I could add it | to Rtools on Windows, but I t

Re: [Rd] MetaCran website v1.0.0-alpha

2015-05-24 Thread Dirk Eddelbuettel
Hi Uwe, On 25 May 2015 at 01:40, Uwe Ligges wrote: | Thanks for letting us know about the new website. Some comments: | | - Download statistics: Where are they from? CRAN does not monitor | downloads generally, maybe some selected mirrors do. This is the "standard" data set which has been prov

Re: [Rd] Question about Rweb

2011-10-06 Thread Dirk Eddelbuettel
On 6 October 2011 at 09:37, Jay Emerson wrote: | Ted, | | Simon may be biased, but I am not. I'm barely a few days into | Rserve/FastRWeb and am blown away (and frustrated that I didn't have a | good excuse to give it a try sooner). I'm still in the process of | refining my setup (including a f

Re: [Rd] Question about Rweb

2011-10-06 Thread Dirk Eddelbuettel
On 5 October 2011 at 21:54, Simon Urbanek wrote: | Ubuntu is currently the most popular and works out of the box on most machines. Personally, I prefer Debian on servers, but there is not a big difference. Ubuntu also comes in at least four flavours: ubuntu (Gnome look), kubuntu (KDE), xub

Re: [Rd] How to test package on Solaris

2011-11-03 Thread Dirk Eddelbuettel
On 3 November 2011 at 08:54, William Revelle wrote: | Dear R developers, | | Is there a way to pretest a package on the Solaris-sparc and solaris-x86 systems equivalent to the win-builder check? Nope, not as far as I know. For Rcpp we are very much in the same boot. There was word of an upc

Re: [Rd] .Call in R

2011-11-17 Thread Dirk Eddelbuettel
On 17 November 2011 at 09:09, Raymond wrote: | Hi R developers, | | I am new to this forum and hope someone can help me with .Call in R. | Greatly appreciate any help! | | Say, I have a vector called "vecA" of length 1, I generate a vector | called "vecR" with elements randomly gener

Re: [Rd] secure password token management method in R

2011-12-18 Thread Dirk Eddelbuettel
On 18 December 2011 at 16:16, Simon Urbanek wrote: | Barry, | | that's a great idea. I have created a package that allows you to read/write passwords to user's keychain: | | http://www.rforge.net/keychain | | So far it uses the Security framework so you'll need a Mac, it but I'm about to add

Re: [Rd] pointers on including SVN revision number in package info?

2012-01-06 Thread Dirk Eddelbuettel
On 6 January 2012 at 20:37, Prof Brian Ripley wrote: | The Subversion book? The MASS/DESCRIPTION file has | | gannet% svn proplist DESCRIPTION | Properties on 'DESCRIPTION': |svn:keywords Yep, I do the same for the $Date$ property in my DESCRIPTION files. Upon commit of the file (eg when i

Re: [Rd] pointers on including SVN revision number in package info?

2012-01-06 Thread Dirk Eddelbuettel
On 6 January 2012 at 16:45, Duncan Murdoch wrote: | I'd like one that produced an R version number directly, but I think | Dirk's script is the only way to do it, and I forget how to use such | scripts five minutes after I write them. And I of course forgot to include the little script once wri

Re: [Rd] Command completion of the R binary / Ubuntu

2012-01-11 Thread Dirk Eddelbuettel
On 11 January 2012 at 17:33, Deepayan Sarkar wrote: | On Wed, Jan 11, 2012 at 4:16 PM, Claudia Beleites | wrote: | > Dear Deepayan and dear list, | > | > I notice a small inconsistency with the command completion of the R CMD | > check. --no-latex is deprecated sincs R 2.12.0 and defunct since 2.

[Rd] Silently loading and Depends: versus NAMESPACE imports

2012-01-11 Thread Dirk Eddelbuettel
R CMD check really hates it when my .onLoad() function contains suppressMessages(library(foo)) However, _and for non-public packages not going to CRAN_ I prefer doing this over using explicit Depends or import statements in the NAMESPACE file as the latter do not give me an ability to make th

Re: [Rd] package DESCRIPTION file and CRAN Task View entries?

2012-01-11 Thread Dirk Eddelbuettel
On 11 January 2012 at 14:11, Jeff Hamann wrote: | I'd like to add the updated rconifers package to the Environmetrics View. In my case, other maintainers typically just email me suggestions for inclusion in the two Task Views I look after. And after all, there is always a one-to-one match betwee

Re: [Rd] Non-default build options

2012-01-25 Thread Dirk Eddelbuettel
On 25 January 2012 at 12:33, Ivan Zaigralin wrote: | Hi! I am a current maintainer of the R slackbuild script (for Slackware | GNU/Linux distribution). I received requests from users to build R with | --enable-R-shlib and --enable-BLAS-shlib, so now I am trying to decide | whether to do so by defa

Re: [Rd] Silently loading and Depends: versus NAMESPACE imports

2012-01-27 Thread Dirk Eddelbuettel
On 12 January 2012 at 12:12, Hervé Pagès wrote: | Hi Dirk, | | On 01/11/2012 11:42 AM, Dirk Eddelbuettel wrote: | > | > R CMD check really hates it when my .onLoad() function contains | > suppressMessages(library(foo)) | | Note that you can always fool 'R CMD check' by d

Re: [Rd] The following code (using rgamma) hangs

2012-01-27 Thread Dirk Eddelbuettel
On 28 January 2012 at 02:33, Faheem Mitha wrote: | | Hi, | | I'm seeing something that may be a bug in R's standalone math library, | which is packaged by Debian as r-mathlib. I reported it to the Debian BTS | as http://bugs.debian.org/657573 | | I'm using Debian squeeze, and the code was tes

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