similar to: R CMD check: better diagnosis for non-ASCII characters

Displaying 20 results from an estimated 9000 matches similar to: "R CMD check: better diagnosis for non-ASCII characters"

2010 Jul 30
1
how to find non-ASCII characters in .Rd files?
[Env: Win XP Pro / R 2.11.1] I keep occasionally running into the annoying problem of getting warnings from R CMD check regarding non ASCII characters in .Rd files, without any easy way of finding them. Mostly these come from copy/paste of references or other material from web pages or Win applications, and often involve varieties of quote-like characters, e.g., if I try to include output
2013 Jan 31
4
CRAN task views: markdown? better .CSS?
CRAN task views are useful, but they seem difficult to write and maintain because the XML format is rather limited (no sectioning) and the <packagelist> must be maintained manually. They are also difficult to read because the generated html and .css used are extremely basic, giving an overly dense page. Are there any markdown-like tools for writing a CTV? Is it possible to apply a
2011 Oct 12
1
NOTE: unstated dependencies in examples
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 'library' or 'require' calls not declared from: gplots sp Under R 2.12.x, I didn't get these notes. I have ~ 25 .Rd files in this package, and AFAICS, every example uses library or require for the functions used;
2014 May 07
3
historical significance of Pr(>Chisq) < 2.2e-16
Where does the value 2.2e-16 come from in p-values for chisq tests such as those reported below? > Anova(cm.mod2) Analysis of Deviance Table (Type II tests) Response: Freq LR Chisq Df Pr(>Chisq) B 11026.2 1 < 2.2e-16 *** W 7037.5 1 < 2.2e-16 *** Age 886.6 8 < 2.2e-16 *** B:W 3025.2 1 < 2.2e-16 *** B:Age 1130.4 8 < 2.2e-16 *** W:Age 332.9 8 < 2.2e-16 *** --- Signif.
2012 Aug 10
1
translating HTML character entities to accented characters
I've imported a .csv file where character strings that contained accented characters were written as HTML character entities. Is there a function that works on a vector to translate them back to accented (latin1) characters? Some examples: > grep("&", author$lname, value=TRUE) [1] "Fr&egrave;re de Montizon" "Lumi&egrave;re" [3]
2011 Nov 08
2
NAMESPACES for data only packages
the NEWS file for R-devel says * Even data-only packages without *R* code need a namespace and so may need to be installed under *R* 2.14.0 or later. but what should this contain? Can it simply be an empty NAMESPACE file? I assume that data does not have to be exported. -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University
2013 Aug 23
2
packages with Sweave and knitr vignettes?
Now that R 3.0.0+ supports non-Sweave vignettes, R-exts \S 1.4.2 seems to imply that it is possible to include both Sweave and knitr vignettes in a single package. I'm wondering if anyone has tried this and/or if there are some hidden gotchas putting this into practice, and concerned about creating problems with CRAN checks if I try this. Consider two vignettes: pkg/vignettes/vign1.Rnw,
2013 Mar 08
2
ggplot2: modifying line width and background fill color for stat_smooth()
In the example below, from http://www.ling.upenn.edu/~joseff/rstudy/summer2010_ggplot2_intro.html I'd like to make (a) the fitted line thicker and (b) change the background fill color for the confidence envelope around each fitted line to a low-alpha transparent version of the same color used for the separate fitted lines for GENDER, rather than grey for both. How can I do this?
2013 Dec 17
1
ggplot2: stat_smooth for family=binomial with cbind(Y, N) formula
With ggplot2, I can plot the glm stat_smooth for binomial data when the response is binary or a two-level factor as follows: data("Donner", package="vcdExtra") ggplot(Donner, aes(age, survived)) + geom_point(position = position_jitter(height = 0.02, width = 0)) + stat_smooth(method = "glm", family = binomial, formula = y ~ x, alpha = 0.2, size=2) But how can I
2011 Apr 08
0
Consistency of messages from R CMD {check,build,install}
A minor gripe/request: Could all R CMD package tools not at the very least be consistent in indicating when they are done, as in * DONE (packagename) or at least * DONE R CMD build leaves one hanging, not knowing whether it has completed or it is time to get another coffee. * checking for file 'C:/Documents/workspace/heplots/DESCRIPTION' ... OK * preparing 'heplots': *
2012 May 10
2
setting global options for a package
This may be elementary, but I can't find an answer: How can I set up global options for some specific arguments to functions in a package which can be easily changed by the user? This question relates to the selection of colors used in functions in several packages (heplots, genridge), where I want to provide reasonable default values for plots, but allow users to change those defaults
2013 Jan 29
3
how to suppress the intercept in an lm()-like formula method?
I'm trying to write a formula method for canonical correlation analysis, that could be called similarly to lm() for a multivariate response: cancor(cbind(y1,y2,y3) ~ x1+x2+x3+x4, data=, ...) or perhaps more naturally, cancor(cbind(y1,y2,y3) ~ cbind(x1,x2,x3,x4), data=, ...) I've adapted the code from lm() to my case, but in this situation, it doesn't make sense to include an
2011 Nov 29
2
format numbers without leading or trailing 0s
A simple question, but I can't find something to do what I want: Given: a vector of numbers, like lambda <- c(0, 0.005, 0.01, 0.02, 0.04, 0.08) Desired: format them in minimal space for use as plot labels, ie, without leading or tailing 0s. For this example: lambdaf <- c("0", .005", ".01", ".02", ".04", ".08") -- Michael
2012 Jun 03
3
Modify pdf file with Illustrator.
Dear list, Some times I want to modify the pdf file which produced by R with illustrator. But when I use Illustrator open the pdf file, it often makes the pdf some little changed. Anyone have some suggestions? Is it better to use other file type, not pdf? Or when I produced the pdf, I should set some other parameters? Thank you
2010 Oct 06
5
R: Tools for thinking about data analysis and graphics
I'm giving a talk about some aspects of language and conceptual tools for thinking about how to solve problems in several programming languages for statistical computing and graphics. I'm particularly interested in language features that relate to: o expressive power: ease of translating what you want to do into the results you want o elegance: how well does the code provide a simple
2010 Nov 29
2
R equivalent of Beaton's Sweep algorithm
I'm looking for an R equivalent of Beaton's (1964) Sweep algorithim for partial inversion of a matrix by pivoting. It implemented in SAS/IML as sweep(matrix, indices), described here http://support.sas.com/documentation/cdl/en/imlug/59656/HTML/default/langref_sect266.htm and here for python http://adorio-research.org/wordpress/?p=262 -- Michael Friendly Email: friendly AT yorku
2011 May 16
1
dir.choose analog of file.choose
Under Windows (and maybe others) you can use file.choose() as a substitute for an explicit file= argument in most places. Is there an analog for what I'll call dir.choose(), so that I can say setwd(dir.choose()) thx, -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
2011 Jul 31
3
R 2.13.1 can't find package binaries on R-Forge
[Env: Win XP] I've just upgraded from R 2.12.2 to R 2.13.1. As part of my upgrade process, I typically install some in-development packages from R-Forge that are not on cran. But for the first time, it doesn't work. e.g., > install.packages("p3d", repos="http://R-Forge.R-project.org") trying URL
2013 Mar 29
1
pairs(X,Y) analog of cor(X,Y)?
With a data frame containing some X & Y variables I can get the between set correlations with cor(X,Y): > cor(NLSY[,1:2], NLSY[3:6]) antisoc hyperact income educ math 0.043381307 -0.07581733 0.25487753 0.2876875 read -0.003735785 -0.07555683 0.09114299 0.1884101 Is there somewhere an analog of pairs(X,Y) that will produce the pairwise plots of each X against each
2014 Oct 30
1
'library' or 'require' call not declared from: 'rgl'
I'm checking a new release of vcdExtra via win builder with R-devel 2014-10-29 r66897 and have run into a Warning I don't know how to fix. I have one S3 generic, mosaic3d() that uses rgl and don't want to have rgl always loaded via Depends:. Instead, the mosaic3d.default() method includes if (!require(rgl)) stop("rgl is required") This always worked in the past, but