Re: [R-pkg-devel] Options "reset" when options(opts)

2024-07-11 Thread David Hugh-Jones
This surprised me, even though it shouldn’t have done. (My false internal model of the world was that oo <- options(); … options(oo) would overwrite the entire options list with the old values.) I wonder if it would be worth pointing out explicitly in ?options. Writing: wyclif.substack.com Book: w

Re: [R-pkg-devel] Package failing reverse dependency checks

2024-02-08 Thread David Hugh-Jones
her approaches include rhub2. > > Best, > > Lluís > > > > On Thu, 8 Feb 2024 at 10:24, David Hugh-Jones > wrote: > >> Hi all, >> >> I'm trying to upload a new version of my "huxtable" package. It is >> currently failing reverse dep

[R-pkg-devel] Package failing reverse dependency checks

2024-02-08 Thread David Hugh-Jones
Hi all, I'm trying to upload a new version of my "huxtable" package. It is currently failing reverse dependency checks for two packages (homnormal and RSStest). The relevant failures are below. I got this failure one time, and fixed the problem, which relates to mistakenly relying on the Suggeste

Re: [R-pkg-devel] Inquiry Regarding Package Organization in CRAN

2024-01-19 Thread David Hugh-Jones
Hi Andriy Renaming the packages seems quite drastic. It’ll break existing code and the packages’ dependencies, and any existing name recognition will be lost. I’m also a bit sceptical that it will greatly affect discoverability: I don’t think most users find packages by scrolling through the big a

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

2024-01-16 Thread David Hugh-Jones
If I understand correctly, the current procedure is that the client downloads every package name from CRAN, and then checks its name is unique. Wouldn’t it be faster (for both parties) to check name uniqueness directly on the server? Writing: wyclif.substack.com Book: www.wyclifsdust.com On Tue

Re: [R-pkg-devel] Package bioOED has been removed from CRAN just for personal reasons

2023-11-03 Thread David Hugh-Jones
appy to redo. > > So *please* do not misuse such a public mailing list and do keep > your private opinions private in such a case in the future! > > >>>>> Spencer Graves on Thu, 2 Nov 2023 15:29:29 -0500 writes: > > > On 11/2/23 2:52 PM, Rolf Turner wrote:

Re: [R-pkg-devel] Package bioOED has been removed from CRAN just for personal reasons

2023-11-02 Thread David Hugh-Jones
Aside from the package question, surely the other issue here is that Prof Ripley’s email is extraordinarily rude. Any paid employee would be sacked for that. I appreciate R and CRAN are volunteer-run organisations, but I don’t think that should be an excuse for this level of, frankly, toxicity. Why

Re: [R-pkg-devel] Public URLs for help for versions of base packages

2023-06-30 Thread David Hugh-Jones
o to > > this help page in the next (previous) version of R" (if it's not a huge > > pain) > > > > On 2023-06-30 11:10 a.m., David Hugh-Jones wrote: > >> OK, so I took Jeff's hint and did this myself! > >> > >> https://github.com/hu

Re: [R-pkg-devel] Public URLs for help for versions of base packages

2023-06-30 Thread David Hugh-Jones
eport bugs if you find any. Cheers, David On Fri, 30 Jun 2023 at 13:23, David Hugh-Jones wrote: > > There are plenty of places to find current docs. I think it’s fine to have > versioned ones also. I agree it would be a good idea to clearly signal > “hey, this is an old version” -

Re: [R-pkg-devel] Public URLs for help for versions of base packages

2023-06-30 Thread David Hugh-Jones
to know if it’s possible to create 00index files without installing the relevant package? (Loading R 0.60 is challenging…) D On Fri, 30 Jun 2023 at 13:02, Duncan Murdoch wrote: > On 30/06/2023 7:57 a.m., David Hugh-Jones wrote: > > Static web pages get indexed by google. > >

Re: [R-pkg-devel] Public URLs for help for versions of base packages

2023-06-30 Thread David Hugh-Jones
Static web pages get indexed by google. David On Fri, 30 Jun 2023 at 09:55, Duncan Murdoch wrote: > Why store them? Download the source on demand, and convert it. Seems > pretty simple. > > Duncan Murdoch > > On 30/06/2023 1:19 a.m., David Hugh-Jones wrote: > > T

Re: [R-pkg-devel] Public URLs for help for versions of base packages

2023-06-29 Thread David Hugh-Jones
let it serve the > relevant docs. > > Dunno of anyone doing this historical dive online for you though. Why > would you want preformatted docs if you didn't have those old versions > installed? > > On June 29, 2023 4:23:55 PM PDT, David Hugh-Jones < > davidhughjo...@gm

Re: [R-pkg-devel] Public URLs for help for versions of base packages

2023-06-29 Thread David Hugh-Jones
That’s useful to know. But is there anywhere with preformatted HTML pages? Cheers, D On Thu, 29 Jun 2023 at 21:46, Ivan Krylov wrote: > On Thu, 29 Jun 2023 20:22:47 +0100 > David Hugh-Jones wrote: > > > I'm looking for a source of online help for R base > > packages,

[R-pkg-devel] Public URLs for help for versions of base packages

2023-06-29 Thread David Hugh-Jones
Dear R packagers, This isn't strictly about packaging but I thought you guys might have the most relevant expertise. I'm looking for a source of online help for R base packages, which covers all versions (for some reasonable value of "all"). So e.g. the equivalent of `?lm` for R 4.1.0. Is there an

Re: [R-pkg-devel] Acknowledging small functions from another package

2023-05-04 Thread David Hugh-Jones
Thank you both. This sounds sensible. Yeah, add my vote for `base::%||%`!! David On Thu, 4 May 2023 at 10:00, Duncan Murdoch wrote: > On 04/05/2023 4:53 a.m., Ivan Krylov wrote: > > On Thu, 4 May 2023 09:21:17 +0100 > > David Hugh-Jones wrote: > > > >> One o

[R-pkg-devel] Acknowledging small functions from another package

2023-05-04 Thread David Hugh-Jones
Hi, One of my packages copy-pasted some small functions (stuff like `%||%` for is.null) from ggplot2. (Both packages are MIT-licensed.) What is an appropriate way to acknowledge this in the DESCRIPTION Author: or Authors@R section? (Note that the list of ggplot2 authors is long and changing.) Ch

[R-pkg-devel] FAQ

2022-12-18 Thread David Hugh-Jones
Hi all, I see some questions coming up repeatedly here…. Would it help to have a FAQ to point at? I’d be happy to help though I’m no expert. Cheers, David -- Sent from Gmail Mobile [[alternative HTML version deleted]] __ R-package-devel@r-pro

Re: [R-pkg-devel] FW: Writing to users config directory for CRAN package

2022-11-05 Thread David Hugh-Jones
m: R-package-devel On Behalf > Of Dirk Eddelbuettel > Sent: Sunday, 6 November 2022 9:29 am > To: David Hugh-Jones > Cc: R package devel > Subject: Re: [R-pkg-devel] Writing to users config directory for CRAN > package > > > On 5 November 2022 at 19:32, Da

[R-pkg-devel] Writing to users config directory for CRAN package

2022-11-05 Thread David Hugh-Jones
Hi, I'm considering submitting the package onetime ( https://github.com/hughjonesd/onetime/) to CRAN. Onetime has functions for showing a message or warning only once (ever per user). It does this by writing to a file in the user's configuration directory, as reported by rappdirs::user_config_dir

Re: [R-pkg-devel] How long to wait before resending response to CRAN

2020-09-18 Thread David Hugh-Jones
gt; Department of Computer Science > University of Manitoba > maxturgeon.ca > > > > -- > *From:* R-package-devel on behalf > of David Hugh-Jones > *Sent:* Thursday, September 17, 2020 2:55 PM > *To:* R package devel > *Subject:* [R-pkg-devel] How long to wait before resending

[R-pkg-devel] How long to wait before resending response to CRAN

2020-09-17 Thread David Hugh-Jones
Hi all, I submitted a package update to CRAN (package "huxtable") and got a couple of NOTES and the usual message about replying-all if I thought the NOTES were false positives. Rightly or wrongly, I did think this, so I replied all with my explanation. This was a week ago. I have not yet heard ba

Re: [R-pkg-devel] check cross-references error: Non-file package-anchored link(s)

2020-06-16 Thread David Hugh-Jones
; From: R-package-devel On Behalf > Of David Hugh-Jones > Sent: 16 June 2020 07:51 > To: Duncan Murdoch > Cc: List r-package-devel > Subject: Re: [R-pkg-devel] check cross-references error: Non-file > package-anchored link(s) > > On this note, I just got > > Non-file pack

Re: [R-pkg-devel] check cross-references error: Non-file package-anchored link(s)

2020-06-15 Thread David Hugh-Jones
On this note, I just got Non-file package-anchored link(s) in documentation object 'brk_width-for-datetime.Rd': ‘[lubridate:%m+%]{lubridate::add_with_rollback()}’ The correct filename appears to be %m+% in the lubridate help. Can anyone tell me the right way to format this? I would work it out

Re: [R-pkg-devel] Including fonts in an rmarkdown vignette

2020-06-03 Thread David Hugh-Jones
n the versions of dependencies. > Maybe something similar is possible for fonts (I have no idea). > > Maëlle. > > Den tisdag 2 juni 2020 20:14:24 CEST, David Hugh-Jones < > davidhughjo...@gmail.com> skrev: > > > > > > Hi, > > I'd like to build a rmarkdown

[R-pkg-devel] Including fonts in an rmarkdown vignette

2020-06-02 Thread David Hugh-Jones
Hi, I'd like to build a rmarkdown vignette with my own choice of fonts – I'm pernickety about look and feel. R CMD check will rebuild vignettes in the vignettes/ directory, and if relevant fonts aren't on the build machine, it'll give a warning. Here are the options I can think of: * build vigne

Re: [R-pkg-devel] slightly polemic question re R CMD check

2020-03-08 Thread David Hugh-Jones
behaviors that are > typically enabled using class-specific arguments (e.g. plot). You cannot > support both fully-generic calls and class-specific calls without giving > the generic some flexibility that won't get used in some cases. > > > On March 8, 2020 9:41:51 AM PDT, David

Re: [R-pkg-devel] slightly polemic question re R CMD check

2020-03-08 Thread David Hugh-Jones
to think this is a bad thing. R does encourage lenient argument > checking... what rock have you been under for the last 20 years? > > On March 8, 2020 5:41:51 AM PDT, David Hugh-Jones < > davidhughjo...@gmail.com> wrote: > >You're quite right :-) But I think the polemic

Re: [R-pkg-devel] slightly polemic question re R CMD check

2020-03-08 Thread David Hugh-Jones
Gabor > > On Sun, Mar 8, 2020 at 10:56 AM David Hugh-Jones > wrote: > > > > Hi all, > > > > My package defines the following method and generic: > > > > chop <- function (x, ...) UseMethod("chop") > > > > chop.default <

[R-pkg-devel] slightly polemic question re R CMD check

2020-03-08 Thread David Hugh-Jones
Hi all, My package defines the following method and generic: chop <- function (x, ...) UseMethod("chop") chop.default <- function (x, breaks, labels, extend = NULL, drop = TRUE) { ... } R CMD check then gives a warning: W checking S3 generic/method consistency (695ms) chop: function(x

Re: [R-pkg-devel] Alternatives to R-devel on a Mac for package checking?

2020-01-23 Thread David Hugh-Jones
The other obvious online checker is rhub, via the rhub package. David On Wed, 15 Jan 2020 at 21:39, Jonathan Greenberg wrote: > One of the issues I'm running into is that it seems every time there's a > Mac update something gets broken with regards to compilers, making it > incredibly challengi

Re: [R-pkg-devel] What counts as an API change?

2019-09-25 Thread David Hugh-Jones
have the opportunity to be precise in > your API definition.) It is really bad to have silent changes in behavior, > and precision in specification is crucial to avoid that if you distribute > packages. > > On September 25, 2019 7:27:25 AM PDT, David Hugh-Jones < > davidhughjo

Re: [R-pkg-devel] What counts as an API change?

2019-09-25 Thread David Hugh-Jones
default values > because the positional behaviour has changed. > > On September 25, 2019 6:51:58 AM PDT, David Hugh-Jones < > davidhughjo...@gmail.com> wrote: > >Hi all, > > > >Philosophical question. My package follows semantic versioning ( > >https://semver.o

[R-pkg-devel] What counts as an API change?

2019-09-25 Thread David Hugh-Jones
Hi all, Philosophical question. My package follows semantic versioning ( https://semver.org). Incompatible API changes should trigger a major version upgrade. OK, but what counts as an incompatible change to an R API? Suppose my current function signature is foo <- function (a, b, c, d) and the

Re: [R-pkg-devel] Require -package.Rd?

2019-09-24 Thread David Hugh-Jones
I would be in favour. I actually used R for several years before figuring out that the vignette was usually where the useful introduction was. Until then I was like “R help is way too technical” On Tue, 24 Sep 2019 at 13:26, Joris Meys wrote: > Dear Dr. Vichtbauer, > > I'm not a CRAN member, but

Re: [R-pkg-devel] How to submit to CRAN from GitHub?

2019-09-22 Thread David Hugh-Jones
If you click on the “check” log in travis, you will find: * checking data for ASCII and uncompressed saves ... WARNING 1411 1412 Note: significantly better compression could be obtained 1413 by using R CMD build --resave-data (Excuse the poor formatting – posting from my phone.) This suggests y

Re: [R-pkg-devel] References in package description file

2019-09-16 Thread David Hugh-Jones
Hi Wolfgang, You can use the CITATION file. See ?citation and ?bibentry. Cheers, David On Mon, 16 Sep 2019 at 08:55, Wolfgang Lenhard < wolfgang.lenh...@uni-wuerzburg.de> wrote: > Hello world, > is there a standard way of adding references (scientific papers ...) to > the description file in R

[R-pkg-devel] meta-question

2019-09-07 Thread David Hugh-Jones
Hi all, A meta-question: I am developing a new package ( https://github.com/hughjonesd/santoku) and I would like to ask some questions. But they are not about e.g. R CMD check or CRAN submission - instead they're more abstract questions of software design. Is this the right place to ask? Cheers,

Re: [R-pkg-devel] devtools::check() shows a warning at the beginning, but not at the end

2019-07-24 Thread David Hugh-Jones
Oops! Sorry for the spam. On Wed, 24 Jul 2019 at 14:02, David Hugh-Jones wrote: > The warning is from devtools::document() rather than R CMD check itself. > You should still fix it though! > > > On Wed, 24 Jul 2019 at 12:05, Sigbert Klinke > wrote: > >> Hi, >&g

Re: [R-pkg-devel] devtools::check() shows a warning at the beginning, but not at the end

2019-07-24 Thread David Hugh-Jones
The warning is from devtools::document() rather than R CMD check itself. You should still fix it though! On Wed, 24 Jul 2019 at 12:05, Sigbert Klinke wrote: > Hi, > > when I called check() on my package I got a warning at the beginning > > Updating plot.matrix documentation > Warnung: roxygen2

Re: [R-pkg-devel] Another CRAN-only bug

2019-06-13 Thread David Hugh-Jones
That is true. But the test doesn’t fail on my machine, or several others, so I still wonder how I am going to debug it. On Thu, 13 Jun 2019 at 10:54, Iñaki Ucar wrote: > On Thu, 13 Jun 2019 at 10:41, David Hugh-Jones > wrote: > > > > Well, the test that fails is this one:

Re: [R-pkg-devel] Another CRAN-only bug

2019-06-13 Thread David Hugh-Jones
st mechanisms are not use and hence output does not show what > the actual test was. > > Best, > Uwe Ligges > > > > > On 13.06.2019 06:59, David Hugh-Jones wrote: > > Hi Duncan, > > > > Of course I appreciate the value of a centralised repository, and I >

Re: [R-pkg-devel] Another CRAN-only bug

2019-06-12 Thread David Hugh-Jones
at 23:26, Duncan Murdoch wrote: > On 12/06/2019 4:57 p.m., David Hugh-Jones wrote: > > Hi all, > > > > Not for the first time, my package has a bug that isn't found on rhub, > > travis, appveyor, or my local machine, but is found on CRAN. This time > it's &g

[R-pkg-devel] Another CRAN-only bug

2019-06-12 Thread David Hugh-Jones
Hi all, Not for the first time, my package has a bug that isn't found on rhub, travis, appveyor, or my local machine, but is found on CRAN. This time it's Windows-only, so I can't even download a Docker image and investigate that way. TBH I am not very enthused by having to treat CRAN servers as

Re: [R-pkg-devel] CRAN student assistants

2019-05-16 Thread David Hugh-Jones
Joris, I have no dog in this fight, but I think you should cool down a bit. Hadley explained why he thought these people were students: it’s the adjective studentische in the job description. I don’t think he meant, or implied, any disrespect to the individuals concerned. He is entitled to ask in

Re: [R-pkg-devel] package cartograflow_0.0.0.9000.tar.gz

2019-04-03 Thread David Hugh-Jones
Is “conflicted” in your DESCRIPTION file? Btw, can we see the package source somewhere? On Wed, 3 Apr 2019 at 19:24, cartograf...@gmail.com wrote: > Yes! > > Le mercredi 3 avril 2019 à 20:21:59 UTC+2, Ben Bolker < > bbol...@gmail.com> a écrit : > > > Have you installed the 'conflicted' pac

Re: [R-pkg-devel] How to debug CRAN errors?

2019-03-16 Thread David Hugh-Jones
; > > > Den torsdag 14 mars 2019 08:48:34 CET, David Hugh-Jones < > davidhughjo...@gmail.com> skrev: > > > Thank you! Got it. This should be close enough to CRAN, and there’s a > Docker image available too. > > On Thu, 14 Mar 2019 at 00:40, Duncan Murdoch > wr

Re: [R-pkg-devel] How to debug CRAN errors?

2019-03-14 Thread David Hugh-Jones
Thank you! Got it. This should be close enough to CRAN, and there’s a Docker image available too. On Thu, 14 Mar 2019 at 00:40, Duncan Murdoch wrote: > On 13/03/2019 8:34 p.m., David Hugh-Jones wrote: > > > > Hi guys > > > > That might be it. But there was no err

Re: [R-pkg-devel] How to debug CRAN errors?

2019-03-13 Thread David Hugh-Jones
; > Bill Dunlap > > TIBCO Software > > wdunlap tibco.com > > > > > > On Wed, Mar 13, 2019 at 8:50 AM David Hugh-Jones < > davidhughjo...@gmail.com> > > wrote: > >> > >> Hi all, > >> > >> My package has errors on CRAN&#x

Re: [R-pkg-devel] How to debug CRAN errors?

2019-03-13 Thread David Hugh-Jones
hink your test test should write to a file in [a > subdirectory of]] tempdir(), not to a file in the current directory. > > comes from > Bill Dunlap > TIBCO Software > wdunlap tibco.com > > > > On Wed, Mar 13, 2019 at 8:50 AM David Hugh-Jones > wrote: > > >

[R-pkg-devel] How to debug CRAN errors?

2019-03-13 Thread David Hugh-Jones
Hi all, My package has errors on CRAN's Linux and Solaris: https://cran.r-project.org/web/checks/check_results_huxtable.html which I can't reproduce on my local OSX Machine, nor on Linux on Travis. Does anyone have any general hints on how to reproduce and/or debug such errors? Specifically th

Re: [R-pkg-devel] Suggested package relies on recent R

2018-12-08 Thread David Hugh-Jones
Yes, I certainly will do that. I've checked on win-builder and the package seems to pass, so my examples seem to be in good order. David On Sat, 8 Dec 2018 at 15:17, Dirk Eddelbuettel wrote: > > On 8 December 2018 at 14:41, David Hugh-Jones wrote: > | Thanks guys. If CRA

Re: [R-pkg-devel] Suggested package relies on recent R

2018-12-08 Thread David Hugh-Jones
t, i.e. wrap uses of the suggested package in > > if (requireNamespace(...)) { ... } > > Duncan Murdoch > > > > > > Hadley > > > > On Fri, Dec 7, 2018 at 9:11 AM David Hugh-Jones > > wrote: > >> > >> Hi, > >> > >&

[R-pkg-devel] Suggested package relies on recent R

2018-12-07 Thread David Hugh-Jones
Hi, My package Suggests a package that relies on R >= 3.5.0. My package works fine with earlier R, though. When travis runs R CMD check on R-oldrel, therefore, it fails because it can't install the suggested package. Is this going to stop me submitting to CRAN? I don't really want to require R 3.

Re: [R-pkg-devel] ICU init failed: U_FILE_ACCESS_ERROR

2018-11-07 Thread David Hugh-Jones
My package had this issue and still got accepted. I think it is a known transient glitch. Just mention it when you submit. On Wed, 7 Nov 2018 at 22:05, Ben Bolker wrote: > > Does it happen consistently? If it's only happened once, could be a > transient glitch in package dependencies. I'd tr

Re: [R-pkg-devel] R graphics 'text' package 'adj' parameter order wrong incorrect reversed?

2018-09-19 Thread David Hugh-Jones
Perhaps the documentation could be clearer, though. (I've been confused by it also.) How about: adj allows adjustment of the text with respect to (x, y). Values of 0, 0.5 and 1 specify that text will appear right of/above, centred around, and left of/below the anchor point, respectively. On Wed,

Re: [R-pkg-devel] Submission to CRAN when package needs personal data (API key)

2018-09-07 Thread David Hugh-Jones
On Fri, 7 Sep 2018 at 09:01, Duncan Murdoch wrote: > > I think it's useful to think of 3 groups who might run tests: > > - authors > - CRAN > - other users of a package. > > What Hadley was arguing for is that CRAN should identify itself to a > package, so that by default a package could ru

Re: [R-pkg-devel] Submission to CRAN when package needs personal data (API key)

2018-09-06 Thread David Hugh-Jones
On Fri, 7 Sep 2018 at 01:16, Duncan Murdoch wrote: > > > When packages delete tests just for CRAN, the quality of the repository > suffers. Users should be able to check an install by running the tests > that passed on CRAN and seeing them pass on their system as well. In my limited experience

Re: [R-pkg-devel] Recommendations about adding options to a package in order to change default values of some functions on-the-fly

2018-09-06 Thread David Hugh-Jones
Hi all, A simple solution - if indeed you want to go down this route - is to use options() and getOption(), ensuring all options are namespaced, e.g. by prefixing them with the package name. David On Thu, 6 Sep 2018 at 17:15, Alexandre Courtiol < alexandre.court...@gmail.com> wrote: > Dear Samu

Re: [R-pkg-devel] More on explosive dependencies

2018-07-16 Thread David Hugh-Jones
Hi Russell, That's v helpful and I am going to try it myself. Can I just ask what goes in your namespace file (and what roxygen tags you use) for the relevant methods? David On Tue, 17 Jul 2018 at 02:29, Lenth, Russell V wrote: > Thanks to all who responded. I am pleased to say that with your

Re: [R-pkg-devel] More on explosive dependencies

2018-07-16 Thread David Hugh-Jones
Hi Russ, Possibly relevant: the modelgenerics package (on GitHub) does exactly what you're suggesting for standard model functions like `nobs` etc. I think at some point it is going to become part of the tidyverse. D On Mon, 16 Jul 2018 at 02:24, Lenth, Russell V wrote: > Package developers,

Re: [R-pkg-devel] Versioning conventions

2018-07-10 Thread David Hugh-Jones
t thought it had been lost! > > The link in the GitHub description appears broken, however. > > On 10 July 2018 at 23:59, David Hugh-Jones > wrote: > > Hi all, > > > > Just updated my rcheology package with data on functions for R 3.5.1 (no > > change fro

[R-pkg-devel] Versioning conventions

2018-07-10 Thread David Hugh-Jones
Hi all, Just updated my rcheology package with data on functions for R 3.5.1 (no change from R 3.5.0 afaik). See https://github.com/hughjonesd/rcheology. I'm wondering how to version this package. It's not on CRAN yet so it would be good to get things right. Possibilities: * Just copy the R ver

Re: [R-pkg-devel] Weird error on CRAN linux check

2018-07-05 Thread David Hugh-Jones
That will indeed fail everywhere. The puzzle is why it fails (only sometimes) when the methods are all exported. The GitHub equivalent is tag v4.0.1-rc1. On Thu, 5 Jul 2018 at 20:43, Iñaki Úcar wrote: > > > El jue., 5 jul. 2018 21:35, David Hugh-Jones > escribió: > >> I

Re: [R-pkg-devel] Weird error on CRAN linux check

2018-07-05 Thread David Hugh-Jones
l. 2018 20:06, Duncan Murdoch > escribió: > >> On 05/07/2018 9:11 AM, David Hugh-Jones wrote: >> > >> > Agreed. I fixed the roxygen2 and it works fine. But yet, the original >> > v4.0.1 on CRAN has a namespace file which contains >> > >> > S3m

Re: [R-pkg-devel] Weird error on CRAN linux check

2018-07-05 Thread David Hugh-Jones
Agreed. I fixed the roxygen2 and it works fine. But yet, the original v4.0.1 on CRAN has a namespace file which contains S3method(bold,huxtable) export(bold) export(bold.huxtable) and S3method("align<-",huxtable) export("align<-") export("align<-.huxtable") yet still fails on linux-patched and

Re: [R-pkg-devel] Weird error on CRAN linux check

2018-07-05 Thread David Hugh-Jones
Wow, this is extremely helpful. I've applied Joris' patch. By the way, the github master has the change that I stopped exporting methods, as per Hadley's suggestion; this caused *all* functions created via make_getter_setters to fail. Version 4.0.1 on CRAN has the methods exported, which was maskin

Re: [R-pkg-devel] Weird error on CRAN linux check

2018-07-04 Thread David Hugh-Jones
I figured that. Actually I just tried this. I now get the interesting result that all calls to a generic fail with the UseMethod error...? On Wed, 4 Jul 2018 at 16:12, Joris Meys wrote: > On Wed, Jul 4, 2018 at 4:22 PM, Hadley Wickham > wrote: > >> I don't think it's related to the error, but y

[R-pkg-devel] Weird error on CRAN linux check

2018-07-04 Thread David Hugh-Jones
Hi all, The following shows an error for my package: https://www.r-project.org/nosvn/R.check/r-release-linux-x86_64/huxtable-00check.html Here's an excerpt: > ### ** Examples > > > ht <- huxtable(a = 1:3, b = 1:3) > align(ht) <- 'right' Error in UseMethod("align<-") : no applicable method for

Re: [R-pkg-devel] r-patched error

2018-06-04 Thread David Hugh-Jones
Thank you very much for this thoughtful advice! I am guessing that getNamespace("huxtable") would be another more self-documenting way to do this. I will make the change. David On Mon, 4 Jun 2018 at 13:26, Duncan Murdoch wrote: > > I'd worry a little bit about your "make_getter_setters" functi

[R-pkg-devel] r-patched error

2018-06-04 Thread David Hugh-Jones
Hi all, Latest release of my package has an error when checked on r-patched-linux and r-devel-linux. Relevant output is shown below (from https://cran.r-project.org/web/checks/check_results_huxtable.html). It suggests that there's no method for `align<-` and `bold` for huxtable objects. In fact th

Re: [R-pkg-devel] Cannot submit package due to misspell note

2018-04-05 Thread David Hugh-Jones
Why not remove the references and instead put them in the package citation info? On Thu, 5 Apr 2018 at 20:35, Dudek Andrzej wrote: > Hello, > > I've stuck in submitting new version of package(mdsOpt), due to the > following note, > > Possibly mis-spelled words in DESCRIPTION: > De (13:2) >

Re: [R-pkg-devel] Fwd: [CRAN-pretest-archived] CRAN submission huxtable 2.0.2

2018-02-07 Thread David Hugh-Jones
Hi Dirk Not running the test on CRAN would fix the problem, but it is kind of an admission of failure. Part of CRAN's point is quality control, so switching off tests just to pass seems perverse. I'll do it if that is the only option. Yes, I bet the CRAN guys are highly busy, and full respect to

[R-pkg-devel] Fwd: [CRAN-pretest-archived] CRAN submission huxtable 2.0.2

2018-02-07 Thread David Hugh-Jones
Hi guys, I've been having some problems with updating my 'huxtable' package on CRAN. The latest issue is that I run a test which renders a rmarkdown document to PDF, using rmarkdown::render. This passes R CMD check fine on my machine, on travis and on win-builder, but fails on the CRAN machines as

Re: [R-pkg-devel] Problem enhancing a package with a predict method not declared to be an S3 method

2017-12-17 Thread David Hugh-Jones
Could you not just skip these particular tests using skip_on_cran()? David [[alternative HTML version deleted]] __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [R-pkg-devel] r-quantities seeking feedback

2017-10-07 Thread David Hugh-Jones
ers, David On 7 October 2017 at 13:00, Iñaki Úcar wrote: > 2017-10-06 22:28 GMT+02:00 David Hugh-Jones : > > Many measurements have no unit, but some uncertainty - e.g. the b and se > > from an arbitrary regression. Can you give specific examples of the > > advantages from

Re: [R-pkg-devel] r-quantities seeking feedback

2017-10-06 Thread David Hugh-Jones
Many measurements have no unit, but some uncertainty - e.g. the b and se from an arbitrary regression. Can you give specific examples of the advantages from binding these packages tightly together? On Fri, 6 Oct 2017 at 21:23, Iñaki Úcar wrote: > El 6 oct. 2017 19:13, "David Hu

Re: [R-pkg-devel] r-quantities seeking feedback

2017-10-06 Thread David Hugh-Jones
One question that comes to mind: what's the synergy? I e why are units and errors best handled together? I use standard errors a lot, but never units... I would like a standard way to represent uncertainty but don't think I need the other stuff. Cheers, D On Fri, 6 Oct 2017 at 17:25, Iñaki Úcar w

Re: [R-pkg-devel] Category (Subjection) in R documentation for package

2017-10-02 Thread David Hugh-Jones
In roxygen2 you do @section Section name: The colon is important. David On 1 October 2017 at 19:50, Duncan Murdoch wrote: > On 01/10/2017 12:42 PM, Mohammad Tanvir Ahamed via R-package-devel wrote: > >> I am building package R-studio (Roxygen2). >> In the package function documentation, now t

Re: [R-pkg-devel] tibbles are not data frames

2017-09-26 Thread David Hugh-Jones
These replies seem to be missing the point, which is that old code has to be rewritten because tibbles don't behave like data frames. It is true that subclasses can override behaviour, but there is an implicit contract that the same methods should do the same things. The as.xxx pattern seems weir

Re: [R-pkg-devel] Changing a package's name

2017-06-13 Thread David Hugh-Jones
d you can choose the name you prefer. If you feel > uncomfortable with the current one then change it. I do not think anyone > else's opinion is relevant unless a package author picks a name that all > right thinking people would find offensive. > > > On 11/06/2017 14:51, David

[R-pkg-devel] Changing a package's name

2017-06-11 Thread David Hugh-Jones
Hello all, A short while ago I released the "huxtable" package for writing HTML and LaTeX tables: https://www.github.com/hughjonesd/huxtable The name seemed cute to me, but I later found out that to Americans it has special associations. The Huxtables were the family in the Cosby show. That would

Re: [R-pkg-devel] doMC dependency

2017-05-15 Thread David Hugh-Jones
>From what you say it sounds as if your package fails on Windows because, well, it doesn't work on Windows, given that doMC isn't available. Trying to hide that would seem weird. Does CRAN insist that all packages should work on all platforms? On Mon, 15 May 2017 at 19:40, Christopher Lalansingh <

[R-pkg-devel] large vignette

2017-05-14 Thread David Hugh-Jones
Hi guys I have a vignette for my anim.plots package, which is inevitably very large as it demonstrates many animations. I'd like to include the .Rmd file, but not the pre-built HTML and image files. Then I'll have a short stub vignette which tells the user how to build the real vignette him or her

Re: [R-pkg-devel] R CMD check not finding my vignettes

2017-04-20 Thread David Hugh-Jones
it for them. > > Duncan Murdoch > > > >> Regards, >> >> Brian >> >> On 04/20/2017 03:38 AM, David Hugh-Jones wrote: >> >>> Hi Duncan, >>> >>> Thank you very much for taking the time to look at this. >>> >>&g

Re: [R-pkg-devel] R CMD check not finding my vignettes

2017-04-20 Thread David Hugh-Jones
ted the > following problems: > > * checking CRAN incoming feasibility ... NOTE > Maintainer: ‘David Hugh-Jones ’ > > Found the following (possibly) invalid URLs: > URL: http://cran.rstudio.com/web/packages/huxtable/index.html > From: README.md > CRAN URL not in canon

Re: [R-pkg-devel] Interplay between knitr() and View()

2017-04-20 Thread David Hugh-Jones
Two questions: 1. If your package definitely needs to call View(), and you want to explain how that will look, then why not show one or more screenshots in your documentation? 2. Why does your package need to call View? Why can't it return the metadata as a data frame, and let the user do what he

Re: [R-pkg-devel] R CMD check not finding my vignettes

2017-04-19 Thread David Hugh-Jones
m19kx9o7dz/huxtable_0.2.0.tar.gz?dl=0 Cheers, David Hugh-Jones On 7 April 2017 at 11:20, Uwe Ligges wrote: > Can you send the tarball please, I can take a look, > >> Uwe > >> >> [[alternative HTML version deleted]] ___

Re: [R-pkg-devel] R CMD check not finding my vignettes

2017-04-10 Thread David Hugh-Jones
accident listed in > Rbuildignore, right? > > > > > From: R-package-devel on behalf > of Uwe Ligges > Sent: Friday, April 7, 2017 12:20 > To: David Hugh-Jones > Cc: r-package-devel@r-project.org > Subject: Re: [R-pkg-devel] R CMD ch

Re: [R-pkg-devel] R CMD check not finding my vignettes

2017-04-07 Thread David Hugh-Jones
tools, but the vignette sources should be placed in > ./vignettes and then R CMD build will put the files into the relevant > places automatically. > > Best, > Uwe Ligges > > > > > > > On 07.04.2017 07:55, David Hugh-Jones wrote: > >> Okay, so this got tumb

Re: [R-pkg-devel] R CMD check not finding my vignettes

2017-04-06 Thread David Hugh-Jones
Okay, so this got tumbleweeded... so should I file a bug? D On Thu, 6 Apr 2017 at 15:37, David Hugh-Jones wrote: > > Before building my package, I manually place both pdf and html versions of > my vignettes into inst/doc. I then build the package with `devtools::check`. > >

[R-pkg-devel] R CMD check not finding my vignettes

2017-04-06 Thread David Hugh-Jones
Before building my package, I manually place both pdf and html versions of my vignettes into inst/doc. I then build the package with `devtools::check`. Listing of the resulting tarball: -rw-r--r-- 0 david staff1692 6 Apr 15:10 huxtable/inst/doc/design-principles.R -rw-r--r-- 0 david sta

Re: [R-pkg-devel] Extending an S3 method, but putting the package in Suggests?

2017-03-14 Thread David Hugh-Jones
issue. Cheers, David On 14 March 2017 at 16:35, Martin Maechler wrote: > >>>>> David Hugh-Jones > >>>>> on Tue, 14 Mar 2017 09:26:49 + writes: > > > Just out of interest, what would happen if I used the hacky solution > of > > s

Re: [R-pkg-devel] Extending an S3 method, but putting the package in Suggests?

2017-03-14 Thread David Hugh-Jones
ed to writing another package and getting it on CRAN... David On Tue, 14 Mar 2017 at 09:06, Martin Maechler wrote: > >>>>> David Hugh-Jones > >>>>> on Tue, 14 Mar 2017 02:46:35 + writes: > >>>>> David Hugh-Jones > >>>>&

Re: [R-pkg-devel] Extending an S3 method, but putting the package in Suggests?

2017-03-14 Thread David Hugh-Jones
Thank you for this info and the suggestion! David On Tue, 14 Mar 2017 at 09:06, Martin Maechler wrote: > >>>>> David Hugh-Jones > >>>>> on Tue, 14 Mar 2017 02:46:35 +0000 writes: > >>>>> David Hugh-Jones > >>>>>

[R-pkg-devel] Extending an S3 method, but putting the package in Suggests?

2017-03-13 Thread David Hugh-Jones
Hi, Cross-posted from SO: http://stackoverflow.com/questions/42776058/extending-an-s3-generic-from-an-optional-package I have a package which provides an as.FlexTable method for its objects, extending the S3 generic from the ReporteRs package. So, my NAMESPACE file, generated by roxygen, has line