Re: [Rd] Fixing a CRAN note

2024-06-26 Thread Kurt Hornik
> Therneau, Terry M , Ph D via R-devel writes: > I am trying to clear up all the "NOTE"s before a CRAN submission, but am a > bit confused > about this one.   What is it complaining about -- that it doesn't like my > name? > ... > * checking for file ‘deming/DESCRIPTION’ ... OK > * this

Re: [Rd] rbind() on zero row matrices is inconsistent

2024-06-26 Thread Kurt Hornik
> Duncan Murdoch writes: > The help for cbind() and rbind() says > "For cbind (rbind), vectors of zero length (including NULL) are ignored > unless the result would have zero rows (columns), for S compatibility. > (Zero-extent matrices do not occur in S3 and are not ignored in R.)" > This

Re: [Rd] Fields used by available.packages

2024-06-12 Thread Kurt Hornik
>>>>> Lluís Revilla writes: > Yes, I think that would be enough.  Thanks. And of course add documentation ... Will try to get this in in the next few days. Best -k > Thank you, Kurt! > Lluís > On Wed, 12 Jun 2024 at 16:35, Kurt Hornik wrote: >>>>&

Re: [Rd] Fields used by available.packages

2024-06-12 Thread Kurt Hornik
> Lluís Revilla writes: Lluis, So in available.packages() I could replace if (is.null(fields)) fields <- requiredFields else { stopifnot(is.character(fields)) fields <- unique(c(requiredFields, fields)) } by someting like if(is.null(fields))

Re: [R-pkg-devel] Compile issues on r-devel-linux-x86_64-debian-clang with OpenMP

2024-05-26 Thread Kurt Hornik
> Dirk Eddelbuettel writes: > Kurt, > Could you do me a favour and run on that clang18-using machine in question > the following one-liner (provided your session has access to a .libPaths() > including Rcpp) and, in the case of success, the resulting function? I can: R>

Re: [R-pkg-devel] Compile issues on r-devel-linux-x86_64-debian-clang with OpenMP

2024-05-24 Thread Kurt Hornik
> Dirk Eddelbuettel writes: > On 23 May 2024 at 20:02, Ivan Krylov wrote: > | On Wed, 22 May 2024 09:18:13 -0500 > | Dirk Eddelbuettel wrote: > | > | > Testing via 'nm' as you show is possible but not exactly 'portable'. > | > So any suggestions as to what to condition on here? > | > | (My

Re: [Rd] max on numeric_version with long components

2024-04-29 Thread Kurt Hornik
>>>>> Kurt Hornik writes: Should be fixed now. Best -k >>>>> Ivan Krylov via R-devel writes: > Indeed, apparently using which.min/which.max on the string encoding is > not good enough. ? which.min says that x can also be > an R object for which

Re: [Rd] Petition to set warnPartialMatch* options to TRUE

2024-04-29 Thread Kurt Hornik
> Therneau, Terry M , Ph D writes: > Let me give partial assent to Michael's suggestion:  a) have an easy way to > turn this on and b) add a strong suggestion to do so to the WRE manual.    > Kurt's example in the email shows how to do (a);  but I just looked in the > WRE manual and don't see

Re: [Rd] max on numeric_version with long components

2024-04-28 Thread Kurt Hornik
> Ivan Krylov via R-devel writes: Indeed, apparently using which.min/which.max on the string encoding is not good enough. ? which.min says that x can also be an R object for which the internal coercion to ‘double’ works and I guess we found a case where it does not work. I'll look into

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

2024-04-25 Thread Kurt Hornik
>>>>> Hervé Pagès writes: > On 4/24/24 23:07, Kurt Hornik wrote: >>>>>>> Hervé Pagès writes: >>> Hi Kurt, >>> Is it intended that numeric_version() returns an error by default on >>> non-character input in R 4.4.0? >>

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

2024-04-25 Thread Kurt Hornik
>>>>> Dirk Eddelbuettel writes: > Hi Kurt, > On 25 April 2024 at 08:07, Kurt Hornik wrote: > | >>>>> Hervé Pagès writes: > | > | > Hi Kurt, > | > Is it intended that numeric_version() returns an error by default on > | > non-c

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

2024-04-25 Thread Kurt Hornik
NVALID_NUMERIC_VERSION_INPUTS_=false but I don't > seem to be able to find any of this mentioned in the NEWS file. That's what I added for smoothing the transition: it will be removed from the trunk shortly. Best -k > Thanks, > H. > On 4/1/24 05:28, Kurt Hornik wrote: >

Re: [Rd] Petition to set warnPartialMatch* options to TRUE during R CMD check by default

2024-04-23 Thread Kurt Hornik
> Michael Chirico writes: Michael, You may have seen that some time ago I added check.R:cprof <- Sys.getenv("_R_CHECK_EXAMPLES_PROFILE_", "") etc so one can use the _R_CHECK_EXAMPLES_PROFILE_ env var to specify a profile to use when running the examples, e.g.

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

2024-04-01 Thread Kurt Hornik
> Andrea Gilardi via R-devel writes: Thanks: should be fixed now in the trunk. Best -k > Thank you very much Dirk for your kind words and for confirming the bug. > Next week I will open a new issue on Bugzilla adding the related patch. > Kind regards > Andrea > On 29/03/2024 20:14, Dirk

Re: [Rd] as.roman upper limit

2024-02-17 Thread Kurt Hornik
> Jonathan Carroll writes: Thanks. Fascinating ... I strongly suspect that when I wrote the code in 2006 the docs said the largest possible number was 3899. Of course, I should have added a comment on this with a pointer to the docs ... In any case, clearly

Re: [Rd] Small typo in Sweave.Rnw

2023-12-11 Thread Kurt Hornik
> Enrico Schumann writes: Great, thanks: changed now. Best -k > In the first paragraph of Sweave.Rnw > (./src/library/utils/vignettes/Sweave.Rnw), it reads > for literate programming \cite{fla:Knuth:1984}. > but probably should be > for literate programming \citep{fla:Knuth:1984}. >

Re: [Rd] [R-pkg-devel] Problem with "compacting" pdf files.

2023-10-04 Thread Kurt Hornik
> Ivan Krylov writes: Thanks: committed now. Best -k > Dear Rolf, > (Moving this one to R-devel...) > On Sun, 1 Oct 2023 21:01:13 + > Rolf Turner wrote: >> I *really* think that the instructions from CRAN could have been >> clearer! Without your guidance I'd have been at a total

Re: [Rd] bug in utils:::format.person

2023-06-05 Thread Kurt Hornik
> Achim Zeileis writes: Thanks---Ivan's fix committed now with c84497. Best -k > Apologies, I missed Ivan's fix to the problem (my day was too long...) > which is, of course, better than mine. > On Sat, 3 Jun 2023, Achim Zeileis wrote: >> Thierry, >> >> thanks for this, this is a bug in

Re: [Rd] Should '@" now be listed in tools:::.get_internal_S3_generics() ?

2023-04-30 Thread Kurt Hornik
>> On Apr 29, 2023, at 4:44 PM, Karolis Koncevičius >> wrote: >> >> Hello Kurt, >> >> With r84341 it now works on my side. >> >> Warm regards, >> Karolis K. >> >>> On Apr 29, 2023, at 1:24 PM, Kurt Hornik wrote: >>&

Re: [Rd] Should '@" now be listed in tools:::.get_internal_S3_generics() ?

2023-04-29 Thread Kurt Hornik
> Karolis Koncevičius writes: Can you pls try again with r84341 or later? Best -k > A more concrete example in order to correct my vague messages below. > Writing an R package that uses `@` and `@<-` as S3 generics. Line from manual > pages in .Rd files: > \method{@}{newclass}(object,

Re: [Rd] Incorrect behavior of ks.test and psmirnov functions with exact=TRUE

2023-03-29 Thread Kurt Hornik
> Alexey Sergushichev writes: Thanks. This is now fixed for the upcoming 4.3.0 release. Best -k > HI, > I've noticed what I think is an incorrect behavior of stats::psmirnov > function and consequently of ks.test when run in an exact mode. > For example: > psmirnov(1, sizes=c(50, 50),

Re: [Rd] Not documenting a function and not getting a check error?

2023-01-08 Thread Kurt Hornik
> Duncan Murdoch writes: > On 06/01/2023 5:25 a.m., Kevin Coombes wrote: >> I am fairly certain that the check for documentation is really just a >> check for the presence of the function name in an "alias" line. > Yes, that's what the test does, and that's fine. The problem is with > the

Re: [Rd] Bug with `[<-.POSIXlt` on specific OSes

2022-10-11 Thread Kurt Hornik
> Davis Vaughan writes: > I've got a bit more information about this one. It seems like it > (only? not sure) appears when `TZ = "UTC"`, which is why I didn't see > it before on my Mac, which defaults to `TZ = ""`. I think this is at > least explainable by the fact that those "optional"

Re: [Rd] Date method of as.POSIXct does not respect tz

2022-09-23 Thread Kurt Hornik
> Martin Maechler writes: Currently in R-devel, R> as.POSIXlt.Date function (x, ...) { if (any((y <- unclass(x)) > .Machine$integer.max, na.rm = TRUE)) as.POSIXlt(.POSIXct(y * 86400), tz = "UTC") else .Internal(Date2POSIXlt(x)) } R> as.POSIXct.Date function (x, ...)

Re: [Rd] [External] Time to drop globalenv() from searches in package code?

2022-09-17 Thread Kurt Hornik
> luke-tierney writes: > On Thu, 15 Sep 2022, Duncan Murdoch wrote: >> The author of this Stackoverflow question >> https://stackoverflow.com/q/73722496/2554330 got confused because a typo in >> his code didn't trigger an error in normal circumstances, but it did when he >> ran his code

Re: [Rd] Respecting custom repositories files in interactive/batch R sessions

2022-09-16 Thread Kurt Hornik
> Gabriel Becker writes: Friends, I always keep forgetting how these things currently/precisely work, but I guess the principle is that utils:::.onLoad() does options(repos = c(CRAN = "@CRAN@")) unless the repos option was already set (in the user or site profiles). As the latter are not

Re: [Rd] documentation of asplit

2021-11-25 Thread Kurt Hornik
> SOEIRO Thomas writes: > Dear list, > The documentation of `asplit` currently says (section Details): "apply > *always* simplifies common length results, so attempting to split via > apply(x, MARGIN, identity) does not work (as it simply gives x)." > This may be updated (e.g., by simply

Re: [Rd] LOGNAME env var in the check code

2021-11-18 Thread Kurt Hornik
> Gábor Csárdi writes: Thanks. c81206 changes to use user <- Sys.info()[["effective_user"]] which afawct should always give the same as the uname for files created by the current user. Pls check: if not, we can go for something like foo <- function() { writeLines("ABC", tf <-

Re: [Rd] LOGNAME env var in the check code

2021-11-17 Thread Kurt Hornik
> Gábor Csárdi writes: > While trying to reproduce a NOTE for > * checking for new files in some other directories ... NOTE > I noticed that the check code uses > Sys.getenv("LOGNAME") > to query the name of the current user. However on many systems this is > not set, so this is the empty

Re: [Rd] Should Position() use match.fun()?

2021-09-09 Thread Kurt Hornik
>>>>> Kurt Hornik writes: >>>>> Steve Martin writes: >> Hello, >> All of the funprog functions except Position() use match.fun() early >> in the body of the function. (Filter() seems to rely on lapply() for >> this, but the effect is the sam

Re: [Rd] Should Position() use match.fun()?

2021-09-09 Thread Kurt Hornik
> Steve Martin writes: > Hello, > All of the funprog functions except Position() use match.fun() early > in the body of the function. (Filter() seems to rely on lapply() for > this, but the effect is the same.) Right. > In most cases this isn't a problem, but I can't see why Position() >

Re: [Rd] Should seq.Date() return double storage?

2021-09-08 Thread Kurt Hornik
> Michael Chirico via R-devel writes: > today <- Sys.Date() > typeof(today) > # [1] "double" > typeof(seq(today, by=1, length.out=2)) > # [1] "integer" > Clearly minor as it doesn't seem to have come up before (e.g. coercion > to numeric will happen automatically whenever fractional dates

Re: [Rd] Possible bug in help file name generation

2021-06-24 Thread Kurt Hornik
> Deepayan Sarkar writes: > On Thu, Jun 24, 2021 at 5:31 PM Iñaki Ucar wrote: >> >> Hi, >> >> I noticed that R 4.1 places html files into the packages' help >> directory, compared to previous versions, which used an RDS. I found a >> possible bug in the code that processes the aliases from

Re: [Rd] help(".libPaths"): Paragraph lacks mentioning of R_LIBS_SITE

2021-04-29 Thread Kurt Hornik
> Henrik Bengtsson writes: Thanks: Tomas and I have now improved this. Best -k > In ?base::.libPaths, there's a paragraph saying: > The library search path is initialized at startup from the environment > variable R_LIBS (which should be a colon-separated list of directories > at which R

Re: [Rd] Silent failure with NA results in fligner.test()

2021-01-24 Thread Kurt Hornik
> Karolis K writes: > To me it seems like returning chi-sq = 0 and p-value = 1 would make sense. > It would also be consistent with other scenarios of equal variance in all > groups. One example: > fligner.test(1:8, gl(2,4)) > #Fligner-Killeen test of homogeneity of variances > # > #

Re: [Rd] WRE still hints at the "styles" field in R_FortranMethodDef

2020-12-30 Thread Kurt Hornik
> Ivan Krylov writes: Thanks: fixed now in the trunk with c79735. Best -k > The field has been removed in R 3.4.0 after being deprecated in R > 3.3.3. Indeed, the paragraph describing it has been commented out > (lines 10144-10151 in R-exts.texi), but another paragraph above (lines >

Re: [Rd] Silent failure with NA results in fligner.test()

2020-12-21 Thread Kurt Hornik
> Karolis K writes: Any preferences? Best -k > Hello, > In certain cases fligner.test() returns NaN statistic and NA p-value. > The issue happens when, after centering with the median, all absolute values > become constant, which ten leads to identical ranks. > Below are a few examples:

Re: [Rd] order() and sort() on single row data.frames

2020-12-01 Thread Kurt Hornik
> Benjamin Becker writes: > Hi, > not sure whether this belongs here or has been reported/asked before. > In the current R devel the behavior of order() and sort() on data.frames > with a single row has changed. > Before (release): >> sort(data.frame("b", "a")) >   X.a. X.b. > 1    a   

Re: [Rd] Named class vector

2020-11-05 Thread Kurt Hornik
> Duncan Murdoch writes: > The source to the noquote() function looks like this: > noquote <- function(obj, right = FALSE) { > ## constructor for a useful "minor" class > if(!inherits(obj,"noquote")) > class(obj) <- c(attr(obj, "class"), > if(right)

Re: [Rd] Error in ?lowess

2020-09-06 Thread Kurt Hornik
> Duncan Murdoch writes: Thanks, fixed now. Best -k > The lowess() help page refers to documentation in "src/appl/lowess.doc". > This was moved to "src/library/stats/src/lowess.doc" in 2007. This > patch fixes it: > Index: src/library/stats/man/lowess.Rd >

Re: [Rd] utils::isS3stdGeneric chokes on primitives and identity

2020-08-20 Thread Kurt Hornik
> Gabriel Becker writes: > I added that so I can look at the proposed fix and put it or something > similar in bugzilla for review final review. > Apologies for the oversight. Fixed now with -while(as.character(bdexpr[[1L]]) == "{") +while(is.call(bdexpr) &&

Re: [Rd] Stale link from ?check to R Internals

2020-08-20 Thread Kurt Hornik
> Duncan Murdoch writes: > On 19/08/2020 12:26 p.m., Toby Hocking wrote: >> Hi the reference to R Internals >> https://cran.r-project.org/doc/manuals/r-release/R-ints.html#Tools >> in ?check (PkgUtils.Rd in utils package) is stale. Here is my proposed >> patch (use named reference rather than

Re: [Rd] Typos in file.path documentation.

2020-08-11 Thread Kurt Hornik
> Rui Barradas writes: Thanks: both fixed now in the trunk with c79004. Best -k > Hello, > R 4.0.2 on Ubuntu 20.04, sessionInfo() below. > I believe there are two typos in ?file.path, section Value, 2nd paragraph. > 1. There is a close parenthesis missing after Encoding, as it is >

Re: [Rd] Typo in ?base::Bessel

2020-08-04 Thread Kurt Hornik
> EDUARDO GARCIA PORTUGUES writes: Thanks, will fix and add a DOI ... Best -k > "So*c*kne, David J. (1973)." -> "Sookne, David J. (1973)." > "Sookne" is referred previously in the documentation and is the correct > surname in the publication >

Re: [Rd] Compilation error for R 4.0.2

2020-07-11 Thread Kurt Hornik
> Wim R Cardoen writes: > Hello, > I experienced a compiler error when I tried to compile the latest version > of R i.e. R4.0.2 > making iosupport.d from iosupport.c > making lapack.d from lapack.c > making list.d from list.c > making localecharset.d from localecharset.c > grep.c(74):

Re: [Rd] R-devel internal errors during check produce?

2020-06-29 Thread Kurt Hornik
; l = list(a=new.env(), b=new.env()) R> unique(l) [[1]] [[2]] Best -k > Best regards, > Jan > On Mon, Jun 29, 2020 at 5:42 PM Martin Maechler > wrote: >> >> >>>>> Kurt Hornik >> >>>>> on Mon, 29 Jun 2020 16:13:03 +020

Re: [Rd] "R CMD Sweave --driver=..." woes

2020-06-29 Thread Kurt Hornik
> Vincent Goulet via R-devel writes: Thanks: fixed now in the trunk with c78751. Best -k > In trying to change the driver used by Sweave on the command line using >R CMD Sweave --driver=foo > I consistently get the "directory 'foo' does not exist' error. (For any value > of 'foo',

Re: [Rd] R-devel internal errors during check produce?

2020-06-29 Thread Kurt Hornik
> Jan Gorecki writes: > So the unique.default is from the R tools package during checks. > I don't see those issues on CRAN checks. I cannot reproduce this locally (and have no clues about docker). Perhaps you can try to debug this on your end? And see what env_list is when the error

Re: [Rd] Possible bug in heatmap()?

2020-06-21 Thread Kurt Hornik
> Viechtbauer, Wolfgang (SP) writes: Should be fixed now. Best -k > Dear All, > There might be a bug in heatmap(): > x <- matrix(rnorm(10*5), 10, 5) > heatmap(x, labCol=1:5) > Error in axis(1, 1L:nc, labels = labCol, las = 2, line = -0.5, tick = 0, : > 'at' and 'labels' lengths

Re: [Rd] quantile() type 1 for some ordered factors in R-devel

2020-05-20 Thread Kurt Hornik
nteger(), but tracing down these breaks can be time-consuming. What > about a warning whenever code that would trigger c.factor() is called? This > way users are given a chance to update packages and code. > Thanks, > Trang > On Wed, May 20, 2020 at 1:53 AM Kurt Hornik wrote: >

Re: [Rd] quantile() type 1 for some ordered factors in R-devel

2020-05-19 Thread Kurt Hornik
> Tobias Rockel writes: Thanks for spotting this, and also to Hadley for reporting to me directly. Fixed now with c78501. Best -k > Hi, > In R-devel (2020-05-17 r78478) quantile() type 1 seems to behave a little > bit strange for some ordered factors: > quantile(factor(1:3, ordered =

Re: [Rd] Minor typo in recent commit

2020-02-11 Thread Kurt Hornik
> Hugh Parsonage writes: Thanks: fixed now. Best -k > I believe should be February 2020 not 2010 > --- a/doc/manual/R-exts.texi > +++ b/doc/manual/R-exts.texi > @@ -2631,9 +2631,9 @@ not necessarily installed) on all known @R{} > platforms. As from @R{} > 4.0.0 a C++ compiler will be

Re: [Rd] Error: package or namespace load failed for‘utils

2019-09-16 Thread Kurt Hornik
> Laurent Gautier writes: > In case a search engine leads someone with the same issue here, I am > documenting the point I reached: > I can reproduce the issue with a small example when forcing R to not load > any package at startup time (using an Renviron file): > ``` > package <- "utils" >

Re: [Rd] R-intro: Appendix A: attach position

2019-09-11 Thread Kurt Hornik
> Suharto Anggono Suharto Anggono via R-devel writes: Thanks: fixed now in the trunk. Best -k > In "An Introduction to R", in "Appendix A  A sample session", in the part on > Michelson data, information for > attach(mm) > is > Make the data frame visible at position 3 (the default). > In

Re: [Rd] Addition of a meta viewport tag to HTML manuals

2019-07-22 Thread Kurt Hornik
>>>>> Kurt Hornik writes: >>>>> Bob Rudis writes: >> Thanks for both the support & sage advice, Martin! >> And, aye, tis straightforward to convert the perl one-liner to a >> shell/sed idiom. >> A kind soul from the list has also o

Re: [Rd] Addition of a meta viewport tag to HTML manuals

2019-07-21 Thread Kurt Hornik
> Bob Rudis writes: > Thanks for both the support & sage advice, Martin! > And, aye, tis straightforward to convert the perl one-liner to a > shell/sed idiom. > A kind soul from the list has also offered to walk me through the > "provide a patch" process and I'll do my best to get it right

Re: [Rd] trivial typos in man/switch.Rd

2019-07-03 Thread Kurt Hornik
> Ben Bolker writes: Thanks: fixed now in the trunk. Best -k > My colleague points out that these typos are probably still present > because almost no-one has the stamina to read that far down in ?switch ... > cheers > Ben Bolker > x[DELETED ATTACHMENT switch_patch.txt, plain text]

Re: [Rd] eliminate a partial argument match warning in R CMD check

2019-07-02 Thread Kurt Hornik
> Jennifer Bryan writes: Thanks: fixed with c76763 in the trunk. Best -k > Hello, > I'm seeing a nuisance warning when I run `R CMD check --as-cran > whatever_x.y.z.tar.gz`. > I generally work with these options set: > options( > warnPartialMatchArgs = TRUE, > warnPartialMatchAttr =

Re: [Rd] [R] Open a file which name contains a tilde

2019-06-12 Thread Kurt Hornik
> Duncan Murdoch writes: With c76695 in the trunk, we now only tilde expand file names starting with a tilde also when using readline. Best -k > On 11/06/2019 4:34 p.m., William Dunlap via R-devel wrote: >> Note that R treats tildes in file names differently on Windows and Linux. >> On

Re: [Rd] Wrong IEEE reference in documentation for the Round function

2019-05-28 Thread Kurt Hornik
> Kyle Hamilton writes: Thanks: I'll fix that. Best -k > Hello, > Since I can't open an account on Bugzilla and the website told me to > submit my bug report to the mailing list here's a patch addressing a > minor typo in the documentation for the Round function. The reference > section

Re: [Rd] Spurious warning from checkReplaceFuns about a non-replacement function

2019-03-12 Thread Kurt Hornik
> Hugh Parsonage writes: > If a function contains the pattern `<-` it is (with a few exceptions) > deemed to be a replacement function and in particular must have second > argument `value` to pass R CMD check. > Consider the function %<->% or any other function containing <- within > grapes.

Re: [Rd] Patch idea: an environment variable for setting the user ID

2018-11-11 Thread Kurt Hornik
> Will L writes: > To R-devel, > In `R CMD build`, the ID of the user is automatically inserted into the > DESCRIPTION file, e.g. > Packaged: 2018-11-06 14:01:50 UTC; > This is problematic for those of us who work in corporate settings. We must > not divulge our user IDs in the packages

Re: [Rd] trivial typo in src/library/stats/man/ts.Rd

2018-11-04 Thread Kurt Hornik
> Ben Bolker writes: Thanks, fixed in the trunk now. Best -k > "vector[s]" should be plural in line 54 ... > cheers >Ben Bolker > > Index: ts.Rd > === > --- ts.Rd (revision 75540) > +++ ts.Rd (working

Re: [Rd] Suggestion: Make CRAN source URLs immutable

2018-10-24 Thread Kurt Hornik
> Kurt Wheeler writes: Try e.g. https://cran.r-project.org/package=httr=1.3.1 https://cran.r-project.org/package=httr=1.3.0 -k > Hello, I hope the is the right list to send this suggestion to. > I was wondering if it might be possible to have CRAN store the most current > version of a

Re: [Rd] 2 minor typos

2018-09-27 Thread Kurt Hornik
> Marie-Helene Burle writes: Thanks, will fix! Best -k > Hello, > I would like to report 2 very minor typos: > 1. help file for package:base function:function > The last sentence of the "Technical details" section reads: > "This is not normally user-visible, but it indicated when

Re: [Rd] Segfault when performing match on POSIXlt object

2018-09-01 Thread Kurt Hornik
> Marco Giuliano writes: Thanks. Should be fixed in the trunk with c75224: will close the PR after more testing. Best -k > Bug report submitted : > https://bugs.r-project.org/bugzilla/show_bug.cgi?id=17459 > Thanks! > On Fri, Aug 31, 2018 at 6:48 PM Martin Maechler > wrote: >> >

Re: [Rd] Argument 'dim' misspelled in error message

2018-09-01 Thread Kurt Hornik
> Hervé Pagès writes: Thanks: fixed in the trunk with c75223. Best -k > Hi, > The following error message misspells the name of > the 'dim' argument: >> array(integer(0), dim=integer(0)) >Error in array(integer(0), dim = integer(0)) : > 'dims' cannot be of length 0 > The name of

Re: [Rd] premature use of startsWith in r75110

2018-08-13 Thread Kurt Hornik
> Hugh Parsonage writes: Thanks, will fix. Best -k > In r75110 at line 1846 in src/library/tools/R/check.R the following > line was changed > - if(length(grep("^Found the defunct/removed function", out8))) > + if(any(startsWith(out8, "Found the defunct/removed function"))) > However, if

Re: [Rd] MARGIN in base::unique.matrix() and base::unique.array()

2018-07-18 Thread Kurt Hornik
> Hervé Pagès writes: Thanks for spotting this. With c74978 I just committed, we now get R> unique(matrix(1:10, ncol=2), MARGIN=1:3) Error in unique.matrix(matrix(1:10, ncol = 2), MARGIN = 1:3) : MARGIN = 1,2,3 is invalid for dim = 5,2 Calls: unique -> unique.matrix R>

Re: [Rd] Bug 16719: kruskal.test documentation for formula

2018-07-01 Thread Kurt Hornik
> Thomas Levine writes: Thanks: this is now fixed in the trunk with c74945. Best -k > I submit a couple options for addressing bug 16719: kruskal.test > documentation for formula. > https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=16719 > disallow-character.diff changes the

Re: [Rd] agrep bug

2018-06-19 Thread Kurt Hornik
> Kolter, Andreas writes: > Sorry, I don't understand how to file a bug properly. Nontheless I > want to report this one because it is still in the code after so many > years. Thanks. This is now fixed in the trunk with c74916. Best -k > This bug still exists: >

Re: [Rd] access an element with empty name

2018-05-14 Thread Kurt Hornik
> Serguei Sokol writes: > Hi, > I came across a case where I cannot access a list element by its empty name. > Minimal example can be constructed as >     x=list("A", 1) >     names(x)=c("a", "") >     x[["a"]] >     #[1]  "A" >     x[[""]] >     #NULL >     x$`a` >     #[1]  "A" >  

Re: [Rd] Numerical stability in chisq.test

2017-12-28 Thread Kurt Hornik
> Jan Motl writes: > The chisq.test on line 57 contains following code: > STATISTIC <- sum(sort((x - E)^2/E, decreasing = TRUE)) The preceding 2 lines seem relevant: ## Sorting before summing may look strange, but seems to be ## a sensible way to deal with

Re: [Rd] Region subtag in package 'Language' field

2017-12-18 Thread Kurt Hornik
> Jeroen Ooms writes: All standard (not private use or grandfathered) IETF language tags should be fine. What WRE says about ISO-639 codes is meant to explain the language subtags. Hth -k > I am looking for the appropriate field to let package authors to > declare the pkg documentation

Re: [Rd] Dialect for shell scripts

2017-12-18 Thread Kurt Hornik
> Iñaki Úcar writes: Same from here: in addition to what the standards say, it always pays to be defensive and check "Portable Shell Programming" in the Autoconf manual. Among other things, this says '$((EXPRESSION))' Arithmetic expansion is not portable as some shells (most notably

Re: [Rd] R CMD Rd2pdf and macros

2017-10-04 Thread Kurt Hornik
> Kasper Daniel Hansen writes: Interesting. When I take e.g. zTree as the last CRAN package using the \packageTitle macro, R CMD Rd2pdf zTree seems to work fine, but R CMD Rd2pdf zTree/man gives Converting Rd files to LaTeX Warning in parse_Rd("zTree/man/zTree-package.Rd",

Re: [Rd] unlicense

2017-01-18 Thread Kurt Hornik
> Charles Geyer writes: > In that case, perhaps the question could be changed to could CC0 be > added to the list of R licences. Right now the only CC licence that > is in the R licenses is CC-BY-SA-4.0. Hmm, I see Name: CC0 FSF: free_and_GPLv3_compatible

Re: [Rd] RFC: Declaring foo.bar as nonS3method() ?!

2015-06-12 Thread Kurt Hornik
Duncan Murdoch writes: On 12/06/2015 4:12 AM, Martin Maechler wrote: This is a topic ' apparent S3 methods note in R CMD check ' from R-package-devel https://stat.ethz.ch/pipermail/r-package-devel/2015q2/000126.html which is relevant to here because some of us have been thinking about

Re: [Rd] RFC: Declaring foo.bar as nonS3method() ?!

2015-06-12 Thread Kurt Hornik
Duncan Murdoch writes: On 12/06/2015 7:16 AM, Kurt Hornik wrote: Duncan Murdoch writes: On 12/06/2015 4:12 AM, Martin Maechler wrote: This is a topic ' apparent S3 methods note in R CMD check ' from R-package-devel https://stat.ethz.ch/pipermail/r-package-devel/2015q2/000126.html

Re: [Rd] NEWS.md support on CRAN

2015-06-03 Thread Kurt Hornik
Duncan Murdoch writes: On 02/06/2015 11:05 AM, Dirk Eddelbuettel wrote: Hi Kurt, On 1 June 2015 at 14:02, Kurt Hornik wrote: | peter dalgaard writes: | | On 30 May 2015, at 01:20 , Imanuel Costigan i.costi...@me.com wrote: | | So I assume this commit means NEWS.md is now no longer

Re: [Rd] NEWS.md support on CRAN

2015-06-01 Thread Kurt Hornik
-source/commit/9ffe87264a1cd59a31a829f72d57af0f1bfa327a Sent from my iPad On 23 May 2015, at 6:05 pm, Kurt Hornik kurt.hor...@wu.ac.at wrote: Duncan Murdoch writes: On 22/05/2015 8:49 PM, Imanuel Costigan wrote: Are there any plans for CRAN to support NEWS files in markdown? Bit

Re: [Rd] NEWS.md support on CRAN

2015-05-23 Thread Kurt Hornik
Duncan Murdoch writes: On 22/05/2015 8:49 PM, Imanuel Costigan wrote: Are there any plans for CRAN to support NEWS files in markdown? Bit of a hassle to go the the package’s Github (or other like) site to read NEWS. Not as far as I know. There have been discussions about increasing the

Re: [Rd] Help finding source of warnings

2015-01-18 Thread Kurt Hornik
Prof J C Nash (U30A) writes: 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 original Fortran code have

Re: [Rd] Making iconv portable?

2014-12-15 Thread Kurt Hornik
Spencer Graves writes: Hello, All: What would it take to make “iconv” portable? I ask, because I want to convert accented characters to vanilla ASCII, thereby converting, e.g., ‘Raúl’ to “Raul”, and Milan Bouchet-Valet suggested on R-help that I use

Re: [Rd] links to package vignettes on CRAN after R 2.14.0

2011-11-21 Thread Kurt Hornik
Yihui Xie writes: Hi, I noticed the links to my package vignettes on CRAN were gone after I started using ./vignettes instead of ./inst/doc, as suggested by the R-exts manual in R 2.14.0. For example, http://cran.r-project.org/web/packages/formatR/index.html

Re: [Rd] libtool FIXME

2011-09-09 Thread Kurt Hornik
Marco atzeri writes: Hi, looking on the build scripts, I noticed on configure.ac ## FIXME ## Completely disable using libtool for building shlibs until libtool ## fully supports Fortran and C++. ## AC_ARG_WITH([libtool], ## [AS_HELP_STRING([--with-libtool],[use libtool for building

Re: [Rd] Referencing non-CRAN extension from CRAN package

2011-08-11 Thread Kurt Hornik
Tim Jurka writes: Hi r-devel, I would like to submit a package to CRAN that makes use of an Omegahat extension, RStem ( http://www.omegahat.org/Rstem/ ). What is the best way to reference it in my package, and ensure compliance with CRAN submission guidelines? CRAN can deal with package

Re: [Rd] all.equal doesn't work for POSIXlt objects

2011-08-08 Thread Kurt Hornik
Joris Meys writes: This is already fixed in r-devel. -k Hi all, following sample code illustrates the problem : Date1 - Date2 - as.POSIXlt(seq.Date(as.Date(2010-04-01),as.Date(2011-04-01),by='day')) identical(Date1,Date2) all.equal(Date1,Date2) identical() gives the correct

Re: [Rd] Accessing Package NEWS (NEWS.Rd)

2011-02-21 Thread Kurt Hornik
Paul Roebuck writes: Okay. So, after having spent quite some time never really tracking down why my package NEWS files were unacceptable to readNEWS(), I noticed that there was recent (to me anyway) development that allowed the NEWS to be done as an Rd file. Sweet! A more standard format...

Re: [Rd] print.citation, small bug?

2011-01-08 Thread Kurt Hornik
Nicholas Lewin-Koh writes: Thanks. Changed in r-devel now. Best -k Hi, I use Sweave extensively in my consulting work. When submitting reports to the scientists I work with I like to use the citation function to reference any packages I use, to give proper acknowledgement. I noted in

Re: [Rd] Minimum of an ordered factor

2011-01-07 Thread Kurt Hornik
Martin Maechler writes: TTLAM == Thaler, Thorn, LAUSANNE, Applied Mathematics thorn.tha...@rdls.nestle.com on Thu, 6 Jan 2011 15:37:01 +0100 writes: TTLAM Kurt Hornik writes if (!all(sapply(args, is.ordered)) || !all(sapply(level.list, identical, y = level.set))) { I think

Re: [Rd] Minimum of an ordered factor

2011-01-06 Thread Kurt Hornik
Martin Maechler writes: I have 3 comments: Thaler, Thorn, LAUSANNE, Applied Mathematics thorn.tha...@rdls.nestle.com on Wed, 5 Jan 2011 11:20:47 +0100 writes: Hi everybody, Is there a particular reason, why this code does not work as intended: z - factor(LETTERS[1:3], ordered =

Re: [Rd] R package BibTex entries: looking for a more general solution

2010-11-03 Thread Kurt Hornik
Michael Friendly writes: Thanks for the suggestions. In fact, we are currently working on this issue. A lot of improvements have already been done, see ?person and ?bibentry for R 2.12.0 or later, especially the details and examples sections. Some more work still needs to be done, though. We

Re: [Rd] Suggestion: Add DESCRIPTION 'Date' to R CMD check log header

2010-09-15 Thread Kurt Hornik
Martin Maechler writes: Hi Henrik HB == Henrik Bengtsson h...@stat.berkeley.edu on Tue, 14 Sep 2010 18:26:31 -0700 writes: HB Hi, HB in R CMD check, the version of the package being checked is reported, e.g. HB Thu Sep 9 05:02:30 2010: Checking package R.utils (SVN revision 399) ... HB

Re: [Rd] NEWS and readNEWS

2010-08-27 Thread Kurt Hornik
Hadley Wickham writes: readNEWS() states: Read R's ‘NEWS’ file or a similarly formatted one. This is an experimental feature, new in R 2.4.0 and may change in several ways and news() also indicates that this tool is supposed to work with non-R news files. However, I've

Re: [Rd] codoc mismatches warning

2010-02-02 Thread Kurt Hornik
Sebastian P Luque writes: Hi, Doing 'R CMD check diveMove' is now throwing this message: Which version of diveMove is this? -k Data codoc mismatches from documentation object 'sealLocs': Variables in data frame 'sealLocs' Code: id.time.class.lon.lat Docs: class id lat lon time

Re: [Rd] optional package dependency

2010-01-15 Thread Kurt Hornik
Jeff Ryan writes: Hi Ross, The quantmod package makes available routines from a variety of contributed packages, but gets around your issues with a bit of, um, trickery. Take a look here (unless your name is Kurt ;-) ): But Kurt will we happy to tell you that you can turn off forcing

Re: [Rd] missing R-devel/po

2010-01-06 Thread Kurt Hornik
Petr Savicky writes: When i unpack R-devel_2010-01-05.tar.bz2 and run ./configure on two Linux machines, i get the error message configure: creating ./config.status config.status: creating Makeconf config.status: creating Makefile config.status: creating doc/Makefile

Re: [Rd] R CMD check may not detect a code/documentation mismatch

2009-12-14 Thread Kurt Hornik
Peter Dalgaard writes: Petr Savicky wrote: For the package at http://www.cs.cas.cz/~savicky/R-devel/something_0.0.0.tar.gz which is a minor part of some other package only to demonstrate the problem, i get (under R version 2.11.0 Under development 2009-12-12 r50714 and also under R-2.9.2,

Re: [Rd] error message when running news()

2009-11-22 Thread Kurt Hornik
Duncan Murdoch writes: On 22/11/2009 7:34 AM, Gabor Grothendieck wrote: When running news() in I get this error message from print.news_db: news() Error: invalid version specification 2.0.12.0.1 patched2.1.02.1.12.1.1 patched2.10.02.10.0 patched2.2.02.2.12.2.1 patched2.3.02.3.12.3.1

  1   2   >