= 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
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
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
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
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
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
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
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
#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
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
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"
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
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
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
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
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
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
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
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:
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
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
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
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
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
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:/
: 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
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) ) );
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
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
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
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
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
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
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
.
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
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
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
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
?
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
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
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.
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
s =
c("red", "blue", "black", "darkgreen", "darkcyan","magenta",
"brown","darkgray"))
}
My function could then use
foo <- function(x, getOption("heplot.colors"), ...) {}
--
Michael Friendly E
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_
-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
,
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
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
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
))
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"
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:
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
--
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
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
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
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
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
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
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
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
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
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
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
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
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-
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
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
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
67 matches
Mail list logo