Closed taiyun closed 12 years ago
Can you please submit a reproducible report? It obviously works for me.
Here is the output massage when I check and install staticdocs:
R CMD check staticdocs
Process started >>>
Warning in dir.create(pkgoutdir, mode = "0755") :
'F:\MyR\staticdocs.Rcheck' already exists
* using log directory 'F:/MyR/staticdocs.Rcheck'
* using R version 2.14.2 (2012-02-29)
* using platform: i386-pc-mingw32 (32-bit)
* using session charset: CP936
* checking for file 'staticdocs/DESCRIPTION' ... OK
* checking extension type ... Package
* this is package 'staticdocs' version '0.1'
* checking package namespace information ... OK
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking if there is a namespace ... OK
* checking for executable files ... OK
* checking whether package 'staticdocs' can be installed ... OK
* checking installed package size ... OK
* checking package directory ... OK
* checking for portable file names ... OK
* checking DESCRIPTION meta-information ... OK
* checking top-level files ... OK
* checking index information ... OK
* checking package subdirectories ... OK
* checking R files for non-ASCII characters ... OK
* checking R files for syntax errors ... OK
* checking whether the package can be loaded ... OK
* checking whether the package can be loaded with stated dependencies ... OK
* checking whether the package can be unloaded cleanly ... OK
* checking whether the namespace can be loaded with stated dependencies ... OK
* checking whether the namespace can be unloaded cleanly ... OK
* checking for unstated dependencies in R code ... OK
* checking S3 generic/method consistency ... OK
* checking replacement functions ... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... NOTE
src_highlight : formatter: no visible global function definition for
'formatter_html'
* checking Rd files ... OK
* checking Rd metadata ... OK
* checking Rd cross-references ... OK
* checking for missing documentation entries ... OK
* checking for code/documentation mismatches ... OK
* checking Rd \usage sections ... OK
* checking Rd contents ... OK
* checking for unstated dependencies in examples ... OK
* checking examples ... ERROR
Running examples in 'staticdocs-Ex.R' failed
The error most likely occurred in:
> ### Name: render_template
> ### Title: Render template.
> ### Aliases: render_template
>
> ### ** Examples
>
> rd <- parse_rd("colSums", "base")
> html <- to_html(rd, package = "base")
Error in renderer$formatter(tokens = renderer$translator(as.character(data[, :
could not find function "formatter_html"
Calls: to_html ... withVisible -> eval -> eval -> highlight -> <Anonymous>
Execution halted
<<< Process finished.
R CMD INSTALL staticdocs
Process started >>>
* installing to library 'D:/Program Files/R/library'
* installing *source* package 'staticdocs' ...
** R
** inst
** preparing package for lazy loading
Warning: replacing previous import 'str_c' when loading 'stringr'
Warning: replacing previous import 'str_replace_all' when loading 'stringr'
** help
*** installing help indices
** building package indices ...
** testing if installed package can be loaded
Warning messages:
1: replacing previous import 'str_c' when loading 'stringr'
2: replacing previous import 'str_replace_all' when loading 'stringr'
* DONE (staticdocs)
<<< Process finished.
Just made a couple of fixes. Can you please try again now ?
There is no error or warning message when R CMD check and R CMD INSTALL now.
Howerver, I still cannot build docs for corrplot package:
build_package("corrplot","corrplot-man") Generating corrplot-package.html Generating colorlegend.html Generating corrMatOrder.html Error: Input to str_c should be atomic vectors
There are formulae and par(ask=TRUE) in help Rd file, and I guess it is the tex formulae or par(ask=TRUE) that lead to the error.
There are also some errors and notes in generating docs of ggplot2:
build_package("ggplot2","ggplot2-man") Generating ggplot2.html Generating ggplot-add.html Generating absoluteGrob.html Generating aes.html Generating aes_all.html Generating aes_auto.html Generating aes_colour_fill_alpha.html Generating aes_group_order.html Generating aes_linetype_size_shape.html Generating aes_position.html Generating aes_string.html Generating annotate.html Generating annotation_custom.html Generating annotation_map.html Generating annotation_raster.html Generating autoplot.html Generating benchplot.html Generating borders.html Generating continuous_scale.html Generating coord.html Generating coord_cartesian.html Error in seq.default(origin[1], max(range$x) + binwidth[1], binwidth[1]) : invalid (to - from)/by in seq(.) Generating coord_fixed.html Generating coord_flip.html Generating coord_map.html Generating coord_polar.html Generating coord_trans.html Generating cut_interval.html Generating cut_number.html Generating cweave.html Generating diamonds.html Generating discrete_scale.html Generating economics.html Generating expand_limits.html Generating facet.html Generating facet_grid.html Generating facet_null.html Generating facet_wrap.html Generating fortify.html Generating fortify-multcomp.html Generating fortify.lm.html Generating fortify.map.html Generating fortify.sp.html Generating geom_abline.html Generating geom_area.html Generating geom_bar.html Generating geom_bin2d.html Error in seq.default(origin[1], max(range$x) + binwidth[1], binwidth[1]) : invalid (to - from)/by in seq(.) Error in seq.default(origin[1], max(range$x) + binwidth[1], binwidth[1]) : invalid (to - from)/by in seq(.) Generating geom_blank.html Generating geom_boxplot.html Generating geom_contour.html Generating geom_crossbar.html Generating geom_density.html Generating geom_density2d.html Generating geom_dotplot.html Generating geom_errorbar.html Generating geom_errorbarh.html Generating geom_freqpoly.html Generating geom_hex.html Generating geom_histogram.html Generating geom_hline.html Generating geom_jitter.html Generating geom_line.html Generating geom_linerange.html Generating geom_map.html Generating geom_path.html Generating geom_point.html Generating geom_pointrange.html Generating geom_polygon.html Generating geom_quantile.html Generating geom_raster.html Can't find help topic pp Can't find help topic pp Generating geom_rect.html Generating geom_ribbon.html Generating geom_rug.html Generating geom_segment.html Generating geom_smooth.html Generating geom_step.html Generating geom_text.html Generating geom_tile.html Can't find help topic pp Can't find help topic pp Can't find help topic pp Can't find help topic pp Generating geom_violin.html Generating geom_vline.html Generating ggfluctuation.html Generating ggmissing.html Generating ggorder.html Generating ggpcp.html Generating ggplot.html Generating ggplot.data.frame.html Generating ggplotGrob.html Generating ggplot_build.html Generating ggplot_gtable.html Generating ggsave.html Can't find help topic default_name Can't find help topic default_device Generating ggscale.html Generating ggstructure.html Generating gtable.html Generating guides.html Generating guide_colourbar.html Generating guide_legend.html Generating hmisc.html Generating interleave.html Generating is.coord.html Generating is.facet.html Generating label_both.html Generating label_bquote.html Generating label_parsed.html Generating label_value.html Generating labs.html Generating last_plot.html Generating layer.html Generating limits.html Generating map_data.html Generating mean_se.html Generating midwest.html Generating movies.html Generating mpg.html Generating msleep.html Generating opts.html Generating plotmatrix.html Generating position_dodge.html Generating position_fill.html Generating position_identity.html Generating position_jitter.html Generating position_stack.html Generating presidential.html Generating print.ggplot.html Generating qplot.html Can't find help topic f Generating resolution.html Generating rweave.html Generating scale_alpha.html Generating scale_identity.html Generating scale_manual.html Generating scale_area.html Generating scale_brewer.html Generating scale_gradient.html Generating scale_hue.html Generating scale_gradient2.html Generating scale_gradientn.html Generating scale_grey.html Generating scale_linetype.html Can't find help topic rescale01 Generating scale_shape.html Generating scale_size.html Generating scale_continuous.html Generating scale_date.html Generating scale_datetime.html Generating scale_discrete.html Generating seals.html Generating should_stop.html Generating stat_abline.html Generating stat_bin.html Generating stat_bin2d.html Error in seq.default(origin[1], max(range$x) + binwidth[1], binwidth[1]) : invalid (to - from)/by in seq(.) Error in seq.default(origin[1], max(range$x) + binwidth[1], binwidth[1]) : invalid (to - from)/by in seq(.) Generating stat_bindot.html Generating stat_binhex.html Generating stat_boxplot.html Generating stat_contour.html Generating stat_density.html Generating stat_density2d.html Can't find help topic kde2d Generating stat_function.html Generating stat_hline.html Generating stat_identity.html Generating stat_qq.html Generating stat_quantile.html Generating stat_smooth.html Generating stat_spoke.html Generating stat_sum.html Generating stat_summary.html Can't find help topic stat_sum_single Can't find help topic stat_sum_single Can't find help topic stat_sum_single Can't find help topic stat_sum_single Can't find help topic stat_sum_df Can't find help topic stat_sum_df Can't find help topic stat_sum_df Can't find help topic stat_sum_df Can't find help topic stat_sum_df Can't find help topic stat_sum_df Can't find help topic stat_sum_df Can't find help topic stat_sum_df Generating stat_summary2d.html Generating stat_summary_hex.html Generating stat_unique.html Generating stat_vline.html Generating stat_ydensity.html Generating summary.ggplot.html Generating theme_blank.html Generating theme_bw.html Generating theme_update.html Generating theme_grey.html Generating theme_line.html Generating theme_rect.html Generating theme_segment.html Generating theme_text.html Generating translate_qplot_base.html Generating translate_qplot_ggplot.html Generating translate_qplot_gpl.html Generating translate_qplot_lattice.html Can't find help topic scale_x_log2 Can't find help topic scale_y_log2 Generating update_element.html Generating update_defaults.html Generating update_labels.html Generating waiver.html Generating xlim.html Generating ylim.html Generating zeroGrob.html Copying vignettes Generating index.html Warning messages: 1: In replayPlot(x) : "bins" is not a graphical parameter 2: In replayPlot(x) : "bins" is not a graphical parameter 3: In replayPlot(x) : "bins" is not a graphical parameter 4: In replayPlot(x) : "bins" is not a graphical parameter 5: In replayPlot(x) : "bins" is not a graphical parameter 6: In replayPlot(x) : "bins" is not a graphical parameter
Ok, so the problem is in the corrplot package. That probably means I missed an Rd tag somewhere. I'll look into it.
The problems with ggplot2 are known, and are mostly problems with the example code, not with staticdocs.
When I created docs for ggplot2 0.9.0:
Can't find help topic tableGrob Error: Input to str_c should be atomic vectors