Re: [R-pkg-devel] CRAN check for package on Sparc Solaris (or other architectures)

2015-05-25 Thread Dirk Eddelbuettel
On 26 May 2015 at 00:13, Viechtbauer Wolfgang (STAT) wrote: | Is there any possibility of checking packages on various architectures, and | especially Sparc Solaris, before submitting? Not that I know of (apart of course from win-builder, and related services such as Travis CI and its kin) and at

Re: [R-pkg-devel] R CMD check getting stalled

2015-05-26 Thread Dirk Eddelbuettel
On 26 May 2015 at 07:04, Charles Determan wrote: | That is strange the R CMD check is stalling but there didn't appear to be | any attached screenshot. I would be also beneficial if we could see/access We don't do screenshots, and we don't do html email. | your source code. Is your package hos

Re: [R-pkg-devel] license for package

2015-05-29 Thread Dirk Eddelbuettel
On 29 May 2015 at 11:44, Pieter Eendebak wrote: | Dear developers, | | How can I specify the license for my package when my package includes some | code with other licenses (and different copyright holders). In particular: | | - my package is BSD 2-clause | - my packages in includes MPL-2 code (

Re: [R-pkg-devel] license for package

2015-05-29 Thread Dirk Eddelbuettel
On 29 May 2015 at 08:23, Drew Schmidt wrote: | | On 05/29/2015 07:56 AM, Dirk Eddelbuettel wrote: | > Lastly, in many cases [eg when you link against libR], the "aggregate work" | > will be under GPL (>= 2) anyway. But within the "aggregate work" the code | > yo

Re: [R-pkg-devel] license for package

2015-05-31 Thread Dirk Eddelbuettel
On 31 May 2015 at 22:42, Pieter Eendebak wrote: | | On Fri, May 29, 2015 at 1:56 PM, Dirk Eddelbuettel wrote: | | | On 29 May 2015 at 11:44, Pieter Eendebak wrote: | | Dear developers, | | | | How can I specify the license for my package when my package includes | some

Re: [R-pkg-devel] Running a script after a package has been installed.

2015-06-03 Thread Dirk Eddelbuettel
On 3 June 2015 at 12:51, Luca Cerone wrote: | Dear all, | I am writing a package that contains some binaries that should be | linked in /usr/bin after the package [ Don't do that, /usr is for your system. Use /usr/local/bin. ] | has been installed (I placed them in Rpackage/inst/bin) | | I know

Re: [R-pkg-devel] Running a script after a package has been installed.

2015-06-03 Thread Dirk Eddelbuettel
On 3 June 2015 at 07:13, Dirk Eddelbuettel wrote: | | On 3 June 2015 at 12:51, Luca Cerone wrote: | | Dear all, | | I am writing a package that contains some binaries that should be | | linked in /usr/bin after the package | | [ Don't do that, /usr is for your system. Use /usr/loca

Re: [R-pkg-devel] Keeping secrets in R packages

2015-06-05 Thread Dirk Eddelbuettel
On 5 June 2015 at 15:19, Neal Fultz wrote: | I am working on updating the RGoogleDocs package to use OAuth2, since the | old api was recently turned off (at my job we use it as a poor mans | database). | | As part of the auth process, I need to send google a client key and secret | in order to ga

Re: [R-pkg-devel] CRAN incoming feasibility Error

2015-06-09 Thread Dirk Eddelbuettel
On 9 June 2015 at 10:24, Seth Wenchel wrote: | Hi All, | | I'm running into an error with R CMD check --as-cran on R 3.2.0 for | windows. Obviously i've tried googling but i haven't found this specific | issue. I was wondering if it is because of my company's network settings. | FWIW, it makes

Re: [R-pkg-devel] CRAN incoming feasibility Error

2015-06-09 Thread Dirk Eddelbuettel
/DESCRIPTION' ... OK | * checking extension type ... Package | * this is package 'anAwesomePackge' version '1.0.0' | * checking CRAN incoming feasibility ...Error in utils::contrib.url(urls, | "source") : |   trying to use CRAN without setting a

Re: [R-pkg-devel] Questions for writing a package

2015-06-11 Thread Dirk Eddelbuettel
On 11 June 2015 at 14:10, haixiao...@aliyun.com wrote: | I'm now developing a package, which needs to call other released software. | The software include executable files with configuration files for Win/Linux/Mac. There is no need to install or compiling the software. | I know it is possible to

Re: [R-pkg-devel] R CMD check "no-nanny" option?

2015-06-11 Thread Dirk Eddelbuettel
On 11 June 2015 at 09:15, Kevin Coombes wrote: | Grumpy Observation: In reaction to (1), I went to CRAN and randomly | clicked on a dozen packages to see how many of them follow this rule. | Half of them violate it explicitly, mostly just starting with "This | package...". Most of the rest ge

Re: [R-pkg-devel] SystemRequirements and .R/Makevars

2015-06-19 Thread Dirk Eddelbuettel
Hi Ramon, On 19 June 2015 at 12:01, Ramon Diaz-Uriarte wrote: | Some of my packages use | | SystemRequirements: C++11 | | in the DESCRIPTION. But then .R/Makevars seems to be ignored (e.g., flags | such as -Wall or using clang) in all that concerns C++ (only CXX and | CXXFLAGS are ignored, not

Re: [R-pkg-devel] how to skip tests on CRAN but NOT on travis-ci?

2015-06-21 Thread Dirk Eddelbuettel
Hi Jenny, And a warm welcome here. I hope you enjoy this place and its ability to form questions (and answers) beyond the 140 char limit posed elsewhere. :-) On 21 June 2015 at 07:46, Jennifer Bryan wrote: | I hope this is an appropriate to place to ask this. My question involves add-on tools

Re: [R-pkg-devel] how to skip tests on CRAN but NOT on travis-ci?

2015-06-21 Thread Dirk Eddelbuettel
On 21 June 2015 at 10:47, Dirk Eddelbuettel wrote: | Environment variables are perfect for this. Eg in RcppRedis I can in fact | assume Redis to be present on Travis (as Travis has a webby-ish focus where | Redis is common) but am fairly certain win-builder and other machines do not. | | So in

Re: [R-pkg-devel] debugging problems with valgrind

2015-06-23 Thread Dirk Eddelbuettel
My approach would be to write a small C++ test function and main program against the C++ library you use, and run it in both 32 and 64 bit. Without using R. You then know whether the difference you see is due to the library, or your R wrapping, which should give you an idea about where to make ch

Re: [R-pkg-devel] no visible global function definition

2015-06-29 Thread Dirk Eddelbuettel
On 29 June 2015 at 10:23, Neal Fultz wrote: | There's https://twitter.com/cranpolicywatch | | I wouldn't mind if that got forwarded to r-package-devel, as I'm not on | twitter myself. CRAN Policy Watch is a simple-ish cronjob and you can also 'watch' (or subscribe to) the underlying GitHub repo

Re: [R-pkg-devel] download.file and https

2015-07-03 Thread Dirk Eddelbuettel
In random, I do the following, using R 3.2.0 or later with libcurl where installed, and Jeroen's lightweight curl::curl otherwise. getConnection <- function(urltxt, ...) { if (getRversion() >= "3.2.0" && capabilities()["libcurl"]) { url(urltxt, ..., method="libcurl") } else {

Re: [R-pkg-devel] download.file and https

2015-07-03 Thread Dirk Eddelbuettel
nd. I was faced with the exact same problem -- Mads switched random.org to https-only -- and would like to see what other suggestions people may have. Dirk | Paul | | On 07/03/2015 06:39 AM, Dirk Eddelbuettel wrote: | > | > In random, I do the following, using R 3.2.0 or later wi

Re: [R-pkg-devel] Saving binary files in a package

2015-07-04 Thread Dirk Eddelbuettel
On 4 July 2015 at 09:12, Thierry Onkelinx wrote: | You have no guarantee that the user has write access to those folders. So | you might want to rethink your strategy. Seconded. And I am not aware of a good cross-platform solution so your best bet may be to require the user to specify a filename.

Re: [R-pkg-devel] R CMD check crash for Ubuntu 14.04 R-3.2.1 only

2015-07-04 Thread Dirk Eddelbuettel
Charles, I took a look based on your tar ball. When I use the normal 'loud' setting I default to for g++ (ie -pedantic -Wall) or clang++ I get more than a page full of errors. I just tried it using the UBSAN-via-clang instrumented R I provide via a docker container (and for which I showed usage

Re: [R-pkg-devel] R CMD check crash for Ubuntu 14.04 R-3.2.1 only

2015-07-04 Thread Dirk Eddelbuettel
Agreed on divide-and-conquer. There is no other way. Valgridn et al may move some code to registers for subtle changes. On 4 July 2015 at 10:20, Charles Geyer wrote: | I should add a more direct question.  When a crash occurs ONLY when running R | CMD check, how does one debug that?  Usually one

Re: [R-pkg-devel] How often does the r-devel docker file update?

2015-07-06 Thread Dirk Eddelbuettel
Hi Zhian, On 5 July 2015 at 21:23, Zhian Kamvar wrote: | I maintain a package that is going to be submitted for an update very soon. I utilize https://registry.hub.docker.com/u/rocker/r-devel/ to check my package with r-devel, but I cannot detect a pattern as to how often it updates. Is there

Re: [R-pkg-devel] Are import-export-only packages allowed on CRAN?

2015-07-06 Thread Dirk Eddelbuettel
Hi Richie, On 5 July 2015 at 19:17, Richard Cotton wrote: | One piece of feedback that I received at useR was that the assertive | package is getting too big, and should be broken down into smaller | pieces. | | I want to split the functionality into assertive.base, | assertive.types, and a few

Re: [R-pkg-devel] Help needed to setting custom packages for R 3.1.2

2015-07-15 Thread Dirk Eddelbuettel
On 15 July 2015 at 09:07, sbihorel wrote: | I saw a few recent posts on topics related to mine (eg | https://stat.ethz.ch/pipermail/r-package-devel/2015q3/000238.html). It | looks like I need to import more packages in my NAMESPACE, correct? Yes. | However, I thought that imports would be rec

Re: [R-pkg-devel] "invalid 'envir' argument" note from R-devel

2015-07-15 Thread Dirk Eddelbuettel
On 14 July 2015 at 08:06, Duncan Murdoch wrote: | It looks like a bug in codetools. It handles a number of functions | specially; data() is one, binomial() is another. I think there are some | implicit assumptions in it that stats and utils are on the search path, | but in the new tests, they ar

Re: [R-pkg-devel] Note about "No repository set, so cyclic dependency check skipped"

2015-07-20 Thread Dirk Eddelbuettel
On 20 July 2015 at 08:53, Martyn Plummer wrote: | On Mon, 2015-07-20 at 07:36 +0200, Antonio José Saez Castillo wrote: | > When checking a package I am getting | > | > * checking package dependencies ... NOTE | >No repository set, so cyclic dependency check skipped | > | > This is an old sou

Re: [R-pkg-devel] recreating CRAN Testing environment

2015-07-20 Thread Dirk Eddelbuettel
Jonathan, On 20 July 2015 at 13:59, Ben Bolker wrote: | On 15-07-20 01:50 PM, Jonathan Callahan wrote: | > In an effort to save time and effort on both ends, can anyone | > advise on what I need to do to generate ALL the warning messages | > that the CRAN testing will find? | |The most impor

Re: [R-pkg-devel] Setting up R-devel in Linux Mint 17.1 64-bit

2015-07-20 Thread Dirk Eddelbuettel
On 20 July 2015 at 18:05, MAURICIO ZAMBRANO BIGIARINI wrote: | Dear list, | | I'm trying to set up the development version of R (R-devel ) for | testing some packages before submitting them to CRAN. I'm using Linux | Mint 17.1 64-bit, which is an Ubuntu-based distro. | | I followed the advice of

Re: [R-pkg-devel] Setting up R-devel in Linux Mint 17.1 64-bit

2015-07-20 Thread Dirk Eddelbuettel
On 20 July 2015 at 18:56, MAURICIO ZAMBRANO BIGIARINI wrote: | how can I be sure that I I enabled the shared library support ? edd@max:~/svn/r-devel$ ./configure --help | grep enable-R-sh --enable-R-shlibbuild the shared/dynamic library 'libR' [no] edd@max:~/svn/r-devel$ Make sure you

Re: [R-pkg-devel] Best practices for vignettes

2015-07-26 Thread Dirk Eddelbuettel
On 26 July 2015 at 18:42, Lenth, Russell V wrote: | What's the best way to manage vignettes? All the young ones will of course tell you to use Markdown :) I still use Sweave / LaTeX as well, along with a custom driver: highlight, as we once figured out how to make it create pretty shaded boxen w

Re: [R-pkg-devel] Best practices for vignettes

2015-07-26 Thread Dirk Eddelbuettel
On 26 July 2015 at 14:22, Dirk Eddelbuettel wrote: | | On 26 July 2015 at 18:42, Lenth, Russell V wrote: | | What's the best way to manage vignettes? | | All the young ones will of course tell you to use Markdown :) | | I still use Sweave / LaTeX as well, along with a custom driver: high

Re: [R-pkg-devel] Best practices for vignettes

2015-07-27 Thread Dirk Eddelbuettel
On 27 July 2015 at 12:50, Henrik Bengtsson wrote: | Have a look at tools::buildVignette() - it builds a vignette the same | way as R CMD build does it. It's a good start for troubleshooting. Seconded. | /Henrik | | On Mon, Jul 27, 2015 at 1:31 AM, Lenth, Russell V | wrote: | > Thanks, Dirk.

Re: [R-pkg-devel] R CMD build with configure-args

2015-07-30 Thread Dirk Eddelbuettel
Besides what Duncan said, relying on user to supply arguments is pretty bad as it more or less guarantees _any_ automated test will not succeed (for lack of involvement of the sage user). Writing configure scripts feels like yet another painful step, but it really is not that hard if you know a l

Re: [R-pkg-devel] R CMD build with configure-args

2015-07-30 Thread Dirk Eddelbuettel
On 30 July 2015 at 17:42, Russell Almond wrote: | Thanks for the suggestion. I do have a configure script (that is what | is reading the --with-netica arg) but I didn't think about searching the | standard install locations. I can probably use that to work around this | problem. | | However,

Re: [R-pkg-devel] .tar vs. binary builds

2015-08-03 Thread Dirk Eddelbuettel
On 3 August 2015 at 19:32, Glenn Schultz wrote: | Got it thanks - I want to achieve maximum exposure and transparency So provide access to the source code, as well as to installable binaries. That is a recipe many of us have used for years if not decades. Dirk -- http://dirk.eddelbuettel.com

Re: [R-pkg-devel] Including Open-Source C Code in R Package

2015-08-05 Thread Dirk Eddelbuettel
On 3 August 2015 at 14:54, Zhu, Zijie wrote: | Hi all, | | I would like to submit a package to CRAN. Now my package includes an | open-source C model released by some other institution. This | open-source C model is published under some public license that is not | in the complete list that CRAN

Re: [R-pkg-devel] Working with connections - What is correct?

2015-08-10 Thread Dirk Eddelbuettel
On 11 August 2015 at 02:09, Glenn Schultz wrote: | All, | Is my function just plain wrong or is it just programming style?  I use connections because SODA (software for data analysis) recommends using connections when working with serialized files.   Nothing wrong with connections. Many of us u

Re: [R-pkg-devel] CRAN submission which requires third party software?

2015-08-11 Thread Dirk Eddelbuettel
On 11 August 2015 at 11:49, Charles Determan wrote: | I am beginning to reach the completion of a new package I would like to | submit to CRAN. However, there are a few aspects of it that I would like | some guidance prior to submitting. | | 1. It requires some third party software (i.e. an Open

Re: [R-pkg-devel] how to make "r-release-osx-x86_64-mavericks" machine support rgl 3D plots

2015-08-12 Thread Dirk Eddelbuettel
Hi Søren, On 12 August 2015 at 11:44, Søren Havelund Welling wrote: | Dear all | | I have a package(forestFloor) which produces an test error when built on the "r-release-osx-x86_64-mavericks" machine. I'm quite sure it's due to Xquartz(or similar) graphical resources have to be installed for

Re: [R-pkg-devel] how to make "r-release-osx-x86_64-mavericks" machine support rgl 3D plots

2015-08-12 Thread Dirk Eddelbuettel
On 12 August 2015 at 09:07, Duncan Murdoch wrote: | On 12/08/2015 8:26 AM, Dirk Eddelbuettel wrote: | > I frequently tests against all reverse dependencies against some of my | > packages, ie Rcpp, RcppArmadillo, ... and packages using rgl generally fail | > during these tests. [...]

Re: [R-pkg-devel] Listing a package in "Imports:" when it's used outside of "R" directory

2015-08-15 Thread Dirk Eddelbuettel
On 14 August 2015 at 23:36, Dean Attali wrote: | Since the Shiny app is an integral part of the package, and the app uses the | "DT" package, I want to place DT under the Imports: field. But then I ran | into the above error. The code checkers are heuristics. They cannot get everything right. I

Re: [R-pkg-devel] Package with external non-Windows C library

2015-08-19 Thread Dirk Eddelbuettel
Hi Simon, On 19 August 2015 at 18:39, Simon David Jacobs wrote: | I am trying to write an R package that relies on an external C library. My | understanding is that the prefered method is to include the C library in | the `src' folder of the package. I'm running into two problems that may There

Re: [R-pkg-devel] openmp

2015-08-24 Thread Dirk Eddelbuettel
On 24 August 2015 at 09:14, Joshua N Pritikin wrote: | On Sun, Aug 23, 2015 at 08:01:08AM +0200, Mark van der Loo wrote: | >Afaik, openmp is available on windows. According to writing R | >extensions: | > | >There is nothing to say what version of OpenMP is supported: version | >3

Re: [R-pkg-devel] [[openmx-dev]] Re: openmp

2015-08-24 Thread Dirk Eddelbuettel
On 24 August 2015 at 11:02, Joshua N Pritikin wrote: | Currently, we have a configure script for package OpenMx that only | enables openmp if gcc is the compiler (OS X only). Nice to hear that | openmp is supported on Windows. Interesting that you opt to ignore OpenMP support on the platform th

Re: [R-pkg-devel] Warnings with reverse dependencies in mutually dependend packages?

2015-08-25 Thread Dirk Eddelbuettel
Daniel, That whole setup sounds somewhat messy. I would either - merge sjPlot and sjmisc, possibly into sjPlot and just deprecate the then-redundant sjmisc - define sjbase, upload it, and have both sjPlot and sjmisc depend on it Dirk -- http://dirk.eddelbuettel.com | @eddelbuet

Re: [R-pkg-devel] Using the correct R binary in configure script

2015-09-26 Thread Dirk Eddelbuettel
On 26 September 2015 at 10:27, Jack Wasey wrote: | Having just read section 1.2 in Writing R extensions, a fragment of a | configure script is offered in order to determine the correct compiler | options. It starts by setting R_HOME with: | | : ${R_HOME=`R RHOME`} | | | `R` is called, even if,

Re: [R-pkg-devel] Using the correct R binary in configure script

2015-09-26 Thread Dirk Eddelbuettel
On 26 September 2015 at 12:32, Jack Wasey wrote: | Dirk, thanks for detailed reply. I may not have explained myself well enough. I | think the problem is that the recommended configure command assumes 'R', not If and only if R_HOME is unset. But witness: edd@max:~$ R --slave -e 'Sys.getenv("R

Re: [R-pkg-devel] Using the correct R binary in configure script

2015-09-26 Thread Dirk Eddelbuettel
On 26 September 2015 at 22:29, peter dalgaard wrote: | | > On 26 Sep 2015, at 17:43 , Dirk Eddelbuettel wrote: | > | > R_HOME is set to the result of the command R RHOME if and only it is unset. | > | > And it usually is unset. | | Did you actually mean that, Dirk? Yes. Bu

Re: [R-pkg-devel] R CMD check NOTE - Long paths in package

2015-10-12 Thread Dirk Eddelbuettel
On 12 October 2015 at 13:13, Charles Determan wrote: | Greetings, | | I have a package which provides headers for a C++ library (similar to the | BH package). However, the C++ library has some heavily nested components | within its' structure so when I run R CMD check I get the following NOTE: |

Re: [R-pkg-devel] R CMD check NOTE - Long paths in package

2015-10-13 Thread Dirk Eddelbuettel
On 13 October 2015 at 15:04, Charles Determan wrote: | I'm glad to see this discussion. Unfortunately in the short term I cannot | remove the nested files (as Dirk implies with the BH package) as it would Rename, not remove. Of course I didn't remove a file. I changed a filename, and the includ

Re: [R-pkg-devel] golang based package for R msgpack and websocket work (RMQ)

2015-10-26 Thread Dirk Eddelbuettel
Hi Jason, On 24 October 2015 at 09:31, Jason E. Aten wrote: | Hello r-package-devel, | | I've made a package for R that uses Go (golang), the compiled language | created by Rob Pike, Ken Thomson, Robert Griesemer, a team of Google | employees, and thousands of open source volunteer contributors.

Re: [R-pkg-devel] golang based package for R msgpack and websocket work (RMQ)

2015-10-27 Thread Dirk Eddelbuettel
On 26 October 2015 at 09:46, Jason E. Aten wrote: | Cool. Thanks for mentioning that. I'll send him a note. +1 -- I would have CC'ed him had I had his email handy. I'll try to reach out too. | You "just" make that |   a) a SystemRequirements: entry and possibly add a line to say which |

Re: [R-pkg-devel] golang based package for R msgpack and websocket work (RMQ)

2015-10-28 Thread Dirk Eddelbuettel
On 27 October 2015 at 12:51, Jason E. Aten wrote: | Re PPAs: good question. | | I did some digging. The ubuntu 14 PPA that I found (https://launchpad.net/ | ~eugenesan/+ppa-packages) was already out of date (having go1.5 not go1.5.1) | when I tried it on a test cloud box running ubuntu 14. I fou

Re: [R-pkg-devel] configure.win for multiple architectures

2015-11-12 Thread Dirk Eddelbuettel
On 12 November 2015 at 07:17, Charles Determan wrote: | I am trying to compile a package (using Rcpp) where the libraries needed | for linking (assigned with PKG_LIBS) are in different locations depending | upon the architecture (32 or 64 bit). [...] Maybe you can borrow this short piece from Rbl

Re: [R-pkg-devel] Problem (with complex.h?) under Microsoft Windows

2015-11-13 Thread Dirk Eddelbuettel
On 13 November 2015 at 17:24, Pierre Lafaye de Micheaux wrote: | might help me solve the problem? If possible, I would like to avoid | invest too much time using the new .Call() interface because I am quite | familiar with the old .C(). If you pay attention to posts in recent years of the R-dev

Re: [R-pkg-devel] Problem (with complex.h?) under Microsoft Windows

2015-11-13 Thread Dirk Eddelbuettel
On 13 November 2015 at 20:24, Roebuck,Paul L wrote: | Too bad you couldn't just use C++ std::complex, but that's a no-go if your function needs C linkage. | | | suggests MS-specific topic, but answers explain mo

Re: [R-pkg-devel] Checking for C++11

2015-11-16 Thread Dirk Eddelbuettel
On 16 November 2015 at 13:07, Marvin Wright wrote: | I would like to check for C++11 support in a package. The package requires gcc >= 4.7 or clang >= 3.0. Windows is handled differently in Makevars.win. I tried two approaches in Makevars so far, but both give warnings in CRAN checks. | | Appr

Re: [R-pkg-devel] Checking for C++11

2015-11-16 Thread Dirk Eddelbuettel
On 16 November 2015 at 16:45, Marvin Wright wrote: | Thanks, that helped. However, a user with gcc < 4.7 will still get cryptic | errors. | | I had another idea: I created a file src/AAA_check_cpp11.cpp, checking the | preprocessor directive “__cplusplus”, see https://github.com/mnwright/ranger/

Re: [R-pkg-devel] Help with making a package for Twitter Authentication

2015-11-25 Thread Dirk Eddelbuettel
I just use and external program: bti [1] and let it handle authentication (there is a set up step). That works beautifully for two cronjobs: CRANberries [2] (which has tweeted thousands of times) and the CRAN Repo Policy changes watcher [3] which tweets whenever the policy document is updated. I

Re: [R-pkg-devel] Multi-threaded C with R's RNG

2015-11-27 Thread Dirk Eddelbuettel
On 27 November 2015 at 19:48, Guillaume Chapron wrote: | Has anyone written a package with a C code that uses R's RNG but in a multi-threaded way (e.g. to parallelize Monte Carlo simulations)? I do not have the knowledge to figure out myself how to solved this and would need to see an example.

Re: [R-pkg-devel] Multi-threaded C with R's RNG

2015-11-28 Thread Dirk Eddelbuettel
On 28 November 2015 at 13:40, Tom Snijders wrote: | On Fri, 27 Nov 2015 19:48:04 +0100, Guillaume Chapron carnivorescie...@gmail.com wrote: | | | | | Has anyone written a package with a C code that uses R's RNG but in a multi-threaded way (e.g. to paralleliz

Re: [R-pkg-devel] coercion in R CMD check

2015-12-02 Thread Dirk Eddelbuettel
On 3 December 2015 at 00:24, Facundo Muñoz wrote: | I have been struggling all day with this issue, which was terribly | difficult to identify. | | In the end, if I have a test in my package such as: | | test_that("coercions works... depending the check", { | s = "/A/string/starting/with/a/sla

Re: [R-pkg-devel] install from github

2015-12-03 Thread Dirk Eddelbuettel
Berry, Missed this this morning ... On 3 December 2015 at 09:40, Berry Boessenkool wrote: | is someone aware of a way to easily install a package hosted on github without using devtools::install_github? Sure, drat can help. A couple of people use it for their packages; Mark who already replied

Re: [R-pkg-devel] Help with making a package for Twitter Authentication

2015-12-07 Thread Dirk Eddelbuettel
On 7 December 2015 at 01:18, Tushar Sadhu wrote: | PS : The Screenshots are in the attachments Please don't do that. Place it somewhere on the intertubes and link to it. Thin of the email list as ascii only. Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org __

Re: [R-pkg-devel] compileAttributes() and 'using namespace' directives

2015-12-08 Thread Dirk Eddelbuettel
Georgi, Wrong list? Try rcpp-devel for Rcpp question. On 8 December 2015 at 14:37, Georgi Boshnakov wrote: | Hi, | | With a collaborator we are working on a package which uses Rcpp and RcppArmadillo. Our *.cpp files start with something like | | // [[Rcpp::depends(RcppArmadillo)]] Use th

[R-pkg-devel] Run-away R CMD check ?

2015-12-12 Thread Dirk Eddelbuettel
For Rcpp and friends, I frequently run 'R CMD check' in "batch mode" over a large set of packages. That works fine, apart from taking long :) I am using the exact same script (which is home-grown and could do with a revision, but is public at [1] -- basically just a big loop over a set of packag

Re: [R-pkg-devel] Run-away R CMD check ?

2015-12-12 Thread Dirk Eddelbuettel
On 12 December 2015 at 11:00, Duncan Murdoch wrote: | On 12/12/2015 9:30 AM, Dirk Eddelbuettel wrote: | > | > For Rcpp and friends, I frequently run 'R CMD check' in "batch mode" over a | > large set of packages. That works fine, apart from taking long :) | > | &g

Re: [R-pkg-devel] Run-away R CMD check ?

2015-12-12 Thread Dirk Eddelbuettel
On 12 December 2015 at 11:36, Paul Gilbert wrote: | | | On 12/12/2015 11:00 AM, Duncan Murdoch wrote: | > On 12/12/2015 9:30 AM, Dirk Eddelbuettel wrote: | >> | >> For Rcpp and friends, I frequently run 'R CMD check' in "batch mode" | >> over a | &

Re: [R-pkg-devel] Run-away R CMD check ?

2015-12-12 Thread Dirk Eddelbuettel
On 12 December 2015 at 18:57, Uwe Ligges wrote: | CRAN has different approaches. | | Under Windows, I typically have an R process that controls the check | process and writes out the process id and timestamp and then starts R | CMD check. Another watcher simply kills the process of a given proc

Re: [R-pkg-devel] Run-away R CMD check ?

2015-12-13 Thread Dirk Eddelbuettel
On 12 December 2015 at 12:10, Dirk Eddelbuettel wrote: | | On 12 December 2015 at 18:57, Uwe Ligges wrote: | | CRAN has different approaches. | | | | Under Windows, I typically have an R process that controls the check | | process and writes out the process id and timestamp and then starts R

Re: [R-pkg-devel] --as-cran URL check

2015-12-14 Thread Dirk Eddelbuettel
On 14 December 2015 at 19:46, Paul Gilbert wrote: | I am having some trouble with a NOTE produced by an R-devel check of URL | references. The reference was | | \url{http://som.eldoc.ub.rug.nl/reports/themeF/2005/05F10/} | | which the --as-cran check finds has moved and notifies about the |

Re: [R-pkg-devel] --as-cran URL check

2015-12-18 Thread Dirk Eddelbuettel
Kurt, I am emailing you directly in extension of a thread from r-package-devel for which you can see the full (short, five posts) history at http://thread.gmane.org/gmane.comp.lang.r.packages.devel/581 Not long ago I had the idea of defining macros for GitHub pull requests and issue tickets.

Re: [R-pkg-devel] --as-cran URL check

2015-12-18 Thread Dirk Eddelbuettel
On 18 December 2015 at 07:14, Dirk Eddelbuettel wrote: | | Kurt, | | I am emailing you directly in extension of a thread from r-package-devel for | which you can see the full (short, five posts) history at | http://thread.gmane.org/gmane.comp.lang.r.packages.devel/581 | | Not long ago I had

Re: [R-pkg-devel] Problem (with complex.h?) under Microsoft Windows

2016-01-03 Thread Dirk Eddelbuettel
On 3 January 2016 at 09:48, Pierre Lafaye de Micheaux wrote: | Thank you for your comments. | | It is indeed the RcppFaddeeva package. I had also tried to put | RcppFaddeeva on the LinkingTo line with no success. | But I will try to ask on the Rcpp mailing list. The RcppFaddeeva package does _n

Re: [R-pkg-devel] Calls to exported dplyr functions from DBI/dplyr backend

2016-01-08 Thread Dirk Eddelbuettel
On 9 January 2016 at 12:20, Imanuel Costigan wrote: | * I import all these dplyr functions into my package (or call with ::) and make CRAN errors go away This is emerging as a recommended idiom for packages. Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org _

Re: [R-pkg-devel] Previous messageNext messageBack to messages The following files should probably not be installed‏

2016-01-20 Thread Dirk Eddelbuettel
On 20 January 2016 at 14:10, Daniel Marcelino wrote: | Hi, I used to have some pictures in ‘inst/doc’ for decoration of the README.MD text, most for the Github repository. | I was able to build the package without any NOTE on this, but since I updated to R 3.2.3 and created a vignette folder I'm

Re: [R-pkg-devel] Packages that depend on third-party binaries

2016-01-23 Thread Dirk Eddelbuettel
Titus, On 23 January 2016 at 15:12, Titus von der Malsburg wrote: | I have a package that might be useful for a lot of my colleagues. It | provides functions for reading a binary file format generated by | measurement instruments by a specific manufacturer. Eventually, I would | like to make th

Re: [R-pkg-devel] R CMD check yielding different results for me than CRAN reviewer

2016-01-26 Thread Dirk Eddelbuettel
On 26 January 2016 at 14:03, Adah Zhang wrote: | I am running R CMD check (and also with the --as-cran flag), which results | in all OK's in my 00check.log. However, after submitting the package, the | CRAN reviewer tells me of a warning/error regarding one of my examples | (which is easily fix-ab

Re: [R-pkg-devel] R CMD check yielding different results for me than CRAN reviewer

2016-01-26 Thread Dirk Eddelbuettel
ed it just one ftp away: | >> On 26 Jan 2016, at 20:54, Dirk Eddelbuettel wrote: | >> -- thanks to Uwe you have r-release and r-devel on Windows just one ftp | >> submission away Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org

Re: [R-pkg-devel] R CMD check yielding different results for me than CRAN reviewer

2016-01-27 Thread Dirk Eddelbuettel
an "Re: Contents of R-package-devel digest..." | > | > | > Today's Topics: | > | >1. R CMD check yielding different results for me thanCRAN | > reviewer (Adah Zhang) | >2. Re: R CMD check yielding different results for me than CRAN | &

Re: [R-pkg-devel] compiling and executing binaries while testing

2016-02-03 Thread Dirk Eddelbuettel
Dear 'code M', We all participate here with 'vizors up' and clear view of each other's identities. Please consider doing the same. On 3 February 2016 at 09:37, code M wrote: | hi, i am sorry if this has been asked already, | but i could not find an answer. | | in short: am i allowed to download

Re: [R-pkg-devel] Namespace problem with pre-R 3.0.0 package

2016-03-04 Thread Dirk Eddelbuettel
On 4 March 2016 at 08:51, Sebastien Moretti wrote: | Is useDynLib enough for package with compiled code? For the loading of the shared library, yes. Your other importing and exporting of R functions is orthogonal to this. Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org

Re: [R-pkg-devel] Data-generating scripts in R packages

2016-03-22 Thread Dirk Eddelbuettel
Kevin, The inst/ directory gives a good handle to pass arbitrary directory layouts of your choosing through. You just need to avoid inst/data as it would clash with an existing data/ directory. I think I have seen inst/rawData inst/extData# as in 'external data' and of

Re: [R-pkg-devel] Scripts to generate data objects

2016-03-30 Thread Dirk Eddelbuettel
On 30 March 2016 at 14:03, Iago Mosqueira wrote: | What is the best way of keeping R scripts that are used to generate the data files in the data/ folder? These are not meant to be available to the user, but I would like to keep them in the package itself. Right now I am storing them inside dat

Re: [R-pkg-devel] Scripts to generate data objects

2016-03-31 Thread Dirk Eddelbuettel
On 31 March 2016 at 14:14, Kirill Müller wrote: | The devtools::use_data_raw() function But the question was about the best way ;-) Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org __ R-package-devel@r-project.org mailing li

Re: [R-pkg-devel] What to do with build-time-only utility scripts in package

2016-04-15 Thread Dirk Eddelbuettel
On 15 April 2016 at 10:27, Tim Keitt wrote: | I created a couple of R scripts to assist my package 'configure' script. I | put them in the top-level of the package and that gives a check error | obviously. So I added them to .Rbuildignore and then the package would not | build (at least on Travis

Re: [R-pkg-devel] Submitting CRAN packages with hard-to-meet dependencies

2016-04-18 Thread Dirk Eddelbuettel
My $0.02: On 18 April 2016 at 20:23, boB Rudis wrote: | I would hope CRAN would let this in with some validation (even to the | point of it possibly adding a new field to DESCRIPTION). It may never | run on Slolaris or Plan 9, and I - who now runs a CRAN mirror in the | hopes to eventually have a

Re: [R-pkg-devel] Submitting CRAN packages with hard-to-meet dependencies

2016-04-20 Thread Dirk Eddelbuettel
On 18 April 2016 at 20:48, boB Rudis wrote: | So, how do we create a solid alternative to CRAN? github drat wld have | been impossible at my previous gig (for good reasons). Is it time to | try to get rOpenSci to be a legit CRAN alternative? Add enough process | around it to support things like th

Re: [R-pkg-devel] Compiling error with the new R.h header (R-devel 3.3.0 for Windows) when using the C++ function isnan() of

2016-04-20 Thread Dirk Eddelbuettel
On 20 April 2016 at 14:28, Antonio Canale wrote: | Dear all, | | my problem is related to the new version of my msBP package but it | actually applies also to the current version uploaded on CRAN | (https://cran.r-project.org/web/checks/check_results_msBP.html). | | It turns out that the package

Re: [R-pkg-devel] Has GitHub been used as a CRAN-style repository?

2016-04-27 Thread Dirk Eddelbuettel
Bruce, As Ben and Thierry already mentioned (thanks!!) drat it pretty much designed to support that out of the box (but also supports repos elsewhere; however there are reasons such as gh-pages that make GitHub uniquely suited). I have some moderately strongly-held beliefs about how install_gith

Re: [R-pkg-devel] Possible R CMD check extensions (Was: Possibly mis-spelled words in DESCRIPTION)

2016-05-08 Thread Dirk Eddelbuettel
On 8 May 2016 at 16:18, Uwe Ligges wrote: | On 08.05.2016 16:13, carlos cinelli wrote: | > How should I proceed in this case? | | Submit to CRAN. The deeper question is if 'we all' can have a conversation about extending the directory layout / format to add things to the packaging infrastructure

Re: [R-pkg-devel] develop package with lots of tcltk in it

2016-05-12 Thread Dirk Eddelbuettel
On 11 May 2016 at 12:56, Dalthorp, Daniel wrote: | I have an R/tcltk application that is designed for use primarily by people | who don't know R and don't care to learn much about it. I'd like users to | be able to use the software with a bare minimum interaction with R. | | Although the applicat

Re: [R-pkg-devel] Checking should be performed on sources prepared by 'R CMD build'?

2016-05-17 Thread Dirk Eddelbuettel
On 17 May 2016 at 12:06, John Nolan wrote: | I'm using RCMD check from the command line and get the warning: | "Checking should be performed on sources prepared by 'R CMD build'." [...] | C:\JohnsWork\R-Packages\gensphere>RCMD build gensphere Good. | C:\JohnsWork\R-Packages\gensphere>RC

Re: [R-pkg-devel] Build fails at Travis CI

2016-06-05 Thread Dirk Eddelbuettel
something like this which I keep as 'roxy.r' in the path: #!/usr/bin/r # # Simple helper script for roxygen2::roxygenize() # # Dirk Eddelbuettel, August 2013 # # GPL-2 or later ## load roxygen library(roxygen2) ## check all command-line arguments (if any are given) for directory s

Re: [R-pkg-devel] How to link executables for non-R-users?

2016-06-16 Thread Dirk Eddelbuettel
On 16 June 2016 at 15:56, Michael Cysouw wrote: | I really like the possibility of projects like docopt , providing a bash interface to R functionality. IMHO this is a great way to allow non-R-users to include R functionality in their workflows. There is a docopt package for

Re: [R-pkg-devel] modification of warning messages

2016-06-22 Thread Dirk Eddelbuettel
On 22 June 2016 at 18:29, Hadley Wickham wrote: | Try warningcall(R_NilValue, "message") Nice one: R> cppFunction("void foo(std::string txt) { Rf_warningcall(R_NilValue, txt.c_str()); }") R> foo("magic!") Warning message: magic! R> Dirk -- http://dirk.eddelbuettel.com | @eddelbue

Re: [R-pkg-devel] Use a small amount of C++-level code from another package without headers in inst/include

2016-07-04 Thread Dirk Eddelbuettel
On 4 July 2016 at 16:56, Duncan Garmonsway wrote: | There is an R package that defines some handy functions for extracting | files from zip archives into a std::string in C++. I'd like to use those | functions in my own packages, but I can't simply link to them because the | header is not in the i

Re: [R-pkg-devel] Documenting dependencies on Bioconductor packages

2016-07-04 Thread Dirk Eddelbuettel
On 4 July 2016 at 06:51, Kristian Hovde Liland wrote: | I haven't found any good examples on how to include such information in the | descriptions. Is it sufficient to write at the end: "This package depends on | the Biostrings package hosted by Bioconductor.", or is there a formal or more | elega

Re: [R-pkg-devel] Is S3 class registration essential for CRAN?

2016-07-12 Thread Dirk Eddelbuettel
On 12 July 2016 at 17:47, S Ellison wrote: | A short question: How necessary is explicit S3 class registration for CRAN submission? | R-forge's check is giving me a note on this for a handful of methods in a package, and I'm unclear whether it is something that _needs_ to be fixed for CRAN su

  1   2   3   4   5   6   7   8   >