[Rd] stats::screeplot suggestion

2020-06-18 Thread Michael Friendly
= xlab, ylab = ylab, ...)     axis(2)     axis(1, at = xp, labels = names(pcs[xp]))     }     invisible() } -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. & Chair, ASA Statistical Graphics Section York University

[Rd] re-submission of package after CRAN-pretest notes

2020-01-08 Thread Michael Friendly
like to re-submit. -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. & Chair, ASA Statistical Graphics Section York University Voice: 416 736-2100 x66249 4700 Keele StreetWeb: http://www.datavis.ca | @datavisFriendly Toronto, ONT M3J

[Rd] passing extra arguments to devtools::build

2019-09-27 Thread Michael Friendly
LL,args =character(),error_on_status =TRUE,:System command error| I've tried other alternatives with other |devtools| commands, like just passing a single argument, but still get the same error |args ='--compact-vignettes="gs+qpdf"'devtools::check_win_devel(args=arg

[Rd] packages: Examples with CPU or elapsed time > 10s

2017-10-04 Thread Michael Friendly
again, and the NOTE appears for another file. Very annoying. It would be far more helpful to see these all together, rather than having to do this incrementally. -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. & Chair, Quantitative Methods York Univer

Re: [Rd] update.packages(checkBuilt=TRUE, ask=FALSE): possible bug

2015-07-29 Thread Michael Friendly
On 7/19/2015 3:50 AM, peter dalgaard wrote: For some, but not allI repositories I get the error message below: >Error in install.packages(update[instlib == l, "Package"], l, contriburl = >contriburl, : > specifying 'contriburl' or 'available' requires a single type, not type = >"both" > >Is it

Re: [Rd] Installing/updating packages on a lab network

2015-07-29 Thread Michael Friendly
his path, so in a new R session, load(rockchalk) will work. However, once I logout, all that disappears, so I have to start over again to install or update a package. -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. & Chair, Quantitative Methods York Univ

[Rd] Installing/updating packages on a lab network

2015-07-28 Thread Michael Friendly
rku.yorku.ca\HH\HOME\friendly with the latter mapped to the X: drive What is the code to be added to Rprofile.site to make this work? thanks, -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. & Chair, Quantitative Methods York University Vo

Re: [Rd] 'library' or 'require' call not declared from: 'rgl'

2014-10-30 Thread Michael Friendly
But R-devel now gave be all those "no visible global function definition for ..." messages. Achim suggested using explicitly rgl:: everywhere. That's quite ugly, but seems to work. -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. & Chair, Q

[Rd] 'library' or 'require' call not declared from: 'rgl'

2014-10-30 Thread Michael Friendly
#x27;Creating R packages' of the 'Writing R Extensions' manual. How can I solve this? -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. & Chair, Quantitative Methods York University Voice: 416 736-2100 x66249 Fax: 416 736-5814 4700 Keele Street

Re: [Rd] no visible binding for global variable for data sets in a package

2014-08-27 Thread Michael Friendly
ction so they are de facto already in the namespace for the purposes of library() and `::`. So I agree, something like exportData() would be useful. (Or some other mechanism. You might want to be able to export data selectively.) - pd [*] "Burdened with pressing obligations", if y

Re: [Rd] no visible binding for global variable for data sets in a package

2014-08-27 Thread Michael Friendly
On 8/27/2014 9:29 AM, Michael Friendly wrote: It works in the sense that Lahman::Label("yearID") will work even when Lahman is not in the search path, but R-devel CMD check will still give the same NOTE, though you can argue that that note is actally a "false positive"

Re: [Rd] no visible binding for global variable for data sets in a package

2014-08-27 Thread Michael Friendly
On 8/27/2014 5:24 AM, Martin Maechler wrote: Michael Friendly on Tue, 26 Aug 2014 17:58:34 -0400 writes: > I'm updating the Lahman package of baseball statistics to the 2013 > release. In addition to > the main data sets, the package also contains sever

[Rd] no visible binding for global variable for data sets in a package

2014-08-26 Thread Michael Friendly
x27;Master' teamInfo: no visible binding for global variable 'Teams' One such function: ## function for accessing variable labels Label <- function(var, labels=rbind(battingLabels, pitchingLabels, fieldingLabels)) { wanted <- which(labels[,1]==var) if (length(wan

Re: [Rd] listof

2014-08-03 Thread Michael Friendly
An interesting topic, but I'll only respond with my own experience, and that is, while 'listof' could be usefully extended there was not enough meat on the bones to want to do so. I think this is a limitation of the S3 class/method structure, as I see it. In several packages (effects, heplots, ca

[Rd] historical significance of Pr(>Chisq) < 2.2e-16

2014-05-07 Thread Michael Friendly
5.2 1 < 2.2e-16 *** B:Age 1130.4 8 < 2.2e-16 *** W:Age 332.9 8 < 2.2e-16 *** --- Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 > -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. & Chair, Quantitative Methods York University

Re: [Rd] Historical NA question

2014-05-04 Thread Michael Friendly
On 03/05/2014 12:39 PM, Hadley Wickham wrote: Can anyone tell me what the significance of 1954 is in R's NA? Just ask R: > 2*(1-pnorm(1954)) [1] 0 > 2*(1-pnorm(1954)) %in% NA [1] 0 > __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailma

[Rd] version numbers for CRAN submissions that give warnings/notes

2014-03-06 Thread Michael Friendly
even for a minor warning or note. -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. & Chair, Quantitative Methods York University Voice: 416 736-2100 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto, ONT M3J 1

[Rd] forking a CRAN project

2014-03-04 Thread Michael Friendly
rily need to release my version to CRAN; just a public repo a reader could download from. -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. & Chair, Quantitative Methods York University Voice: 416 736-2100 x66249 Fax: 416 736-5814 4700 Kee

[Rd] proposal: stats::as.matrix.ftable method

2014-01-10 Thread Michael Friendly
31 244 E53 138 94 299 F22 351 24 317 > -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. & Chair, Quantitative Methods York University Voice:

[Rd] bug/infelicity in citation("base")

2013-10-04 Thread Michael Friendly
cite = citation(pkg, auto = if (pkg == "base") NULL else TRUE) entry = toBibtex(cite) entry[1] = sub("\\{,$", sprintf("{R-%s,", pkg), entry[1]) gsub("", "", entry) }, simplify = FALSE) Is th

Re: [Rd] declaring package dependencies

2013-09-15 Thread Michael Friendly
nt a time machine or psychic powers, I do not see how package developers can reasonably be expected to cope with this. The effort by R Core members that goes into R and CRAN is certainly herculean and I appreciate it very much. Like Dirk, I'm just looking for a little more predictability

Re: [Rd] declaring package dependencies

2013-09-13 Thread Michael Friendly
ASS::loglm in examples seems ugly. For now, I'll use require(MASS) in each example. Attaching it first loads it, then modifies the user's search list so the user can see it. Which directive does this? -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology De

[Rd] declaring package dependencies

2013-09-12 Thread Michael Friendly
ng messages: 1: package ‘vcd’ was built under R version 3.0.1 2: package ‘MASS’ was built under R version 3.0.1 > Note: these CRAN errors do not occur on R-Forge, using R version 3.0.1 Patched (2013-08-21 r63645) and the latest devel version (0.5-11) of vcdExtra. -Michael -- Michael Friendly

[Rd] packages with Sweave and knitr vignettes?

2013-08-23 Thread Michael Friendly
oes a package exist that does this? TIA -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. & Chair, Quantitative Methods York University Voice: 416 736-2100 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto, ONT

Re: [Rd] legitimate use of :::

2013-08-22 Thread Michael Friendly
functions to my package, but this seems wasteful. -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. & Chair, Quantitative Methods York University Voice: 416 736-2100 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http:/

[Rd] Confusion about Depends:, Imports:, Enhances:, import(), inportFrom()

2013-08-22 Thread Michael Friendly
: The ‘Imports’ field lists packages whose namespaces are imported from (as specified in the NAMESPACE file) but which do not need to be attached, but how can I tell if gnm needs to be attached? Also, what is the difference between Imports: in DESCRIPTION and imports() in NAMESPACE? -Micha

[Rd] probable bugs in stats::loglin calculation of pearson chisq

2013-07-09 Thread Michael Friendly
erstand the reasons for the different calculations of observed & expected for pearson & lrt. FWIW, below is how I calculate these in my mosaics.sas program start chisq(obs, fit); *-- Find Pearson and likelihood ratio chisquares; gf = sum ( (obs - fit)##2 / ( fit + (fit=0) ) );

Re: [Rd] vignettes: problems with PDF compaction

2013-04-23 Thread Michael Friendly
om 739Kb to 366Kb So, I can now copy the compacted file back to my development tree on Windows; however, as I understand things, vignettes are re-built by R CMD build and --compact-vignettes=gs+qpdf has no effect. So my Ubuntu-compacted file will be overwritten. It's somewhat maddening to have

Re: [Rd] vignettes: problems with PDF compaction

2013-04-22 Thread Michael Friendly
On 4/21/2013 1:28 PM, Michael Friendly wrote: [Env: OS: Win Xp; R 2.15.2; IDE: eclipse/StatET] Each time I update my heplots package, I get warnings from R CMD check on R-Forge, * checking sizes of PDF files under ‘inst/doc’ ... WARNING ‘gs+qpdf’ made some significant size reductions

Re: [Rd] vignettes: problems with PDF compaction

2013-04-21 Thread Michael Friendly
ource tree I sync with R-Forge (b) when I examine the heplots_1.0-9.tar.gz source package, the file heplots/inst/doc/HE-examples has not been modified in size. So, I still don't know how to correct this on my end. -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology De

[Rd] vignettes: problems with PDF compaction

2013-04-21 Thread Michael Friendly
it? The idea of vignettes for R packages is a good thing, but, this problem (and others with vignettes) discourages me from using vignettes in packages, a bad thing. -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. & Chair, Quantitative Methods York Unive

Re: [Rd] assignInNamespace to create a setwd() replacement: how to use unlockBinding()?

2013-02-08 Thread Michael Friendly
Best, Uwe Ligges -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. & Chair, Quantitative Methods York University Voice: 416 736-2100 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto, ONT M

[Rd] assignInNamespace to create a setwd() replacement: how to use unlockBinding()?

2013-02-07 Thread Michael Friendly
27;t see where or how. I should also add that in my actual .Rprofile, I source these functions into a local environment & attach so they are always available, but don't clutter up ls() .my.env <- local({ # all my local definitions }) attach(.my.env) -- Michael Friendly Email: f

Re: [Rd] CRAN task views: markdown? better .CSS?

2013-01-31 Thread Michael Friendly
und to add some more convenience features for this. Something simple might be a tool to scan the ... section for ... mentions and just print a new section to the console. This would avoid having to remember what you added recently and manually add to the -Michael -- Michael Friendly

[Rd] CRAN task views: markdown? better .CSS?

2013-01-31 Thread Michael Friendly
. Are there any markdown-like tools for writing a CTV? Is it possible to apply a custom .css to a CTV? -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. & Chair, Quantitative Methods York University Voice: 416 736-2100 x66249 Fax: 416 736-5814

Re: [Rd] Declaring/importing non-exported functions [car] in another package

2013-01-16 Thread Michael Friendly
t;) of Writing R Extensions reasonably clear. Best, John On Wed, 16 Jan 2013 11:40:37 -0500 Duncan Murdoch wrote: On 13-01-16 11:25 AM, Michael Friendly wrote: A new function in my heplots package wants to use a non-exported utility function in the car package, df.terms, but this depends on ot

Re: [Rd] Declaring/importing non-exported functions [car] in another package

2013-01-16 Thread Michael Friendly
no applicable method for 'df.terms' applied to an object of class "c('mlm', 'lm')" Calls: coefplot -> coefplot.mlm -> Execution halted So, the semantics of importFrom() do not allow non-exported functions (I still wonder why), and my only direct

Re: [Rd] Declaring/importing non-exported functions [car] in another package

2013-01-16 Thread Michael Friendly
ns. Thanks for the clarification, but I blame the manual. Could I suggest a change in the manual to make this clearer: Using |foo:::f| directly in a function instead of |foo::f| allows access to unexported objects (rather than in importsFrom()). ... -- Michael Friendly Email: friendly

[Rd] Declaring/importing non-exported functions [car] in another package

2013-01-16 Thread Michael Friendly
? 2. Is my only alternative to copy these functions to my package, also unexported? thx, -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. & Chair, Quantitative Methods York University Voice: 416 736-2100 x66249 Fax: 416 736-5814 4700 Keele S

Re: [Rd] R CMD check: better diagnosis for non-ASCII characters

2012-11-28 Thread Michael Friendly
out, I can attempt a patch. -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. & Chair, Quantitative Methods York University Voice: 416 736-2100 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toro

[Rd] R CMD check: better diagnosis for non-ASCII characters

2012-11-27 Thread Michael Friendly
lved by > tools:::showNonASCIIfile("Battig.Rd") 47: \emph{Journal of Experimental Psychology}, 80 (1969), pp. 1<96>46 but I had to find this function again via ??ascii because it is not exported. -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept.

[Rd] stumped on re-building package vignette

2012-06-06 Thread Michael Friendly
the .Rnw file. What could cause this? Second, I have tried manually running tools::compactPDF("HE-examples.pdf) on the .pdf file under inst/doc in the package, but no change is made to the .pdf file. I can't see any way to correct this. -- Michael Friendly Email: friendly AT yor

[Rd] setting global options for a package

2012-05-10 Thread Michael Friendly
s = c("red", "blue", "black", "darkgreen", "darkcyan","magenta", "brown","darkgray")) } My function could then use foo <- function(x, getOption("heplot.colors"), ...) {} -- Michael Friendly E

Re: [Rd] uncompressed saves warning

2012-03-22 Thread Michael Friendly
1] grid stats graphics grDevices utils datasets methods base other attached packages: [1] p3d_0.02-4 mgcv_1.7-13 car_2.0-12 nnet_7.3-1 rgl_0.92.798 vcd_1.2-13 colorspace_1.1-1 MASS_7.3-17 loaded via a namespace (and not attached): [1] lattice_

[Rd] uncompressed saves warning

2012-03-21 Thread Michael Friendly
-data old_size new_size compress gfrance.rda 300Kb179Kb xz gfrance85.rda295Kb176Kb xz What is the equivalent R command to compress these files in my project tree? -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York

[Rd] R-devel now triggers nags on notes from vignettes

2012-01-24 Thread Michael Friendly
, particularly from vignettes? -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb:http://www.datavis.ca Toronto, ONT M3J 1P3 CANADA __ R

Re: [Rd] nobs() and logLik()

2012-01-20 Thread Michael Friendly
he case of zero weights naturally allows a variety of simple robust methods via a weight function that descends to 0. A discontinuity at 0 in the handling of weights prevents this use. -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 41

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

2011-12-19 Thread Michael Friendly
id argument `entry`: expected a bibentry object or a character vector of package names. > best, -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700

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

2011-12-16 Thread Michael Friendly
)) output <- file(filename, "a") cat(header, preamble, sep='\n', file=output, append=TRUE) ## write everything to a single .bib file writeLines(do.call("c", lapply(bibs, as.character)), con=output) close(output) if(verbose) cat("Converted"

Re: [Rd] How to deal with package conflicts

2011-11-25 Thread Michael Friendly
o me this seems to be a flaw in the namespace mechanism. best, -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http:

[Rd] How to deal with package conflicts

2011-11-24 Thread Michael Friendly
ckage ‘survival’ is required by ‘car’ so will not be detached I don't see any solution to this, other than (a) renaming my ridge() to something else -- don't want to do this (b) use \dontrun{} for the examples that use car Or, is there some other way? -- Michael Friendly Email: frien

[Rd] NAMESPACES for data only packages

2011-11-08 Thread Michael Friendly
-- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto, ONT M3J 1P3 CANADA [[alternative HTML version deleted

Re: [Rd] CRAN: How to list a non-Sweave doc under "Vignettes:" on package page?

2011-11-07 Thread Michael Friendly
as to delete the source inst/doc/MultiSpat.Rnw file from the package. Consequently, the .pdf vignette remains in the package, but it is not listed as a vignette on CRAN, nor found via vignette() best, -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dep

Re: [Rd] NOTE: unstated dependencies in examples

2011-10-14 Thread Michael Friendly
ent of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Wed, Oct 12, 2011 at 11:33 AM, Michael Friendly wrote: Using R 2.13.1, I am now getting the following NOTE when I run R CMD check on my HistData package * checking for unstated dependencies in examples ... NOTE 'librar

[Rd] NOTE: unstated dependencies in examples

2011-10-12 Thread Michael Friendly
lattice, ReadImages, car But I have no way to find the .Rd file(s) that triggered this note. What is the tool used in R CMD check to make this diagnosis? It would be better if this reported the .Rd file(s) that triggered this note. Is it possible that this note could be specious? -Michael -- M

[Rd] R license for a derived data-only package

2011-09-16 Thread Michael Friendly
N defines a wider range of licenses, including a bunch of non-free ones, http://ctan.mirror.rafal.ca/help/Catalogue/licenses.html But I don't know if any of these are acceptable in R packages (e.g., will pass R CMD check). I'd rather not have to consult a lawyer, so any guidance is welcome

Re: [Rd] CRAN packages maintained by you

2011-08-22 Thread Michael Friendly
ty, you need to rename to Authors@R, remove the DESCRIPTION Author and Maintainer fields in the package sources, and then run R CMD build from a current version of r-devel.) Best -k -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416

[Rd] Consistency of messages from R CMD {check,build,install}

2011-04-08 Thread Michael Friendly
or empty or unneeded directories * building 'heplots_0.9-8.tar.gz' Some checking/building processes take a while, so it would also be nice if more of the info lines ended with ... OK tia, -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York Unive

Re: [Rd] system.file() to read a text file from a vignette

2011-03-23 Thread Michael Friendly
of the source package, or using calls to system.file(), *noting that the "inst" directory is moved up a level when it is installed and should not be mentioned in the path used in system.file().* -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University

[Rd] system.file() to read a text file from a vignette

2011-03-23 Thread Michael Friendly
e(system.file("inst","doc","extdata","tv.dat",package="vcdExtra")) head(tv.data,5) @ But I get the error: Error: processing vignette 'vcd-tutorial.Rnw' failed with diagnostics: chunk 23 (label=tv1) Error in read.table(system.file("inst

Re: [Rd] aperm() should retain class of input object

2010-12-29 Thread Michael Friendly
table [11] summary.table tail.table* Non-visible functions are asterisked methods(class="array") [1] anyDuplicated.array as.data.frame.array as.raster.array* barchart.array* contourplot.array* dotplot.array* [7] duplicated.arraylevelplot.array*unique.array -- Michael

[Rd] aperm() should retain class of input object

2010-12-27 Thread Michael Friendly
asterisked > > methods(class="array") [1] anyDuplicated.array as.data.frame.array as.raster.array* barchart.array* contourplot.array* dotplot.array* [7] duplicated.arraylevelplot.array*unique.array -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept

Re: [Rd] warning creating an as.array method in a package

2010-12-10 Thread Michael Friendly
States.1252 [3] LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C [5] LC_TIME=English_United States.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] tools_2.11.1 > On 12/9/2010 10:05 AM, Mich

[Rd] warning creating an as.array method in a package

2010-12-09 Thread Michael Friendly
dsratio* [9] vcov.loddsratio* Non-visible functions are asterisked > Is there some work-around so I can have an S3 as.array() method in my package and avoid this warning? -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-

[Rd] Request: kronecker to get a sep= argument

2010-11-25 Thread Michael Friendly
r(dnx[[i]], dny[[i]], FUN = "paste", sep = sep) } Otherwise, I have to reproduce the logic inside kronecker() in my application function. -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 4

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

2010-11-03 Thread Michael Friendly
ld provided in the package DESCRIPTION Warning: Authors: field does not appear to be a list of names joined with 'and' Providing something like this would obviate my suggestions to impose restrictions on DESCRIPTION files, and seems more in line with the way R packages and documen

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

2010-11-03 Thread Michael Friendly
g may be necessary, but I think a worthy goal would be to try to reduce the need for this. One simple way to do that would be to support an extra Contributions: field in the DESCRIPTION file, so that Authors: can be more cleanly separated for the purpose of creating well-structured BibTeX