R使得安装包变得很容易,例如,
install.packages("rmarkdown")这工作得很好,并结束了注释
The downloaded source packages are in
‘/tmp/Rtmpb9da02/downloaded_packages’`但在此之后,目录/usr/local/lib/R/site-library/rmarkdown/R只包含3个文件:rmarkdown、rmarkdown.rdb和rmarkdown.rdx。
相反,刚刚下载的/tmp/Rtmpb9da02/downloaded_packages/rmarkdown_1.11.tar.gz将为相应的目录rmarkdown/R提供完整的源文件:
base64.R html_vignette.R render_html.R
beamer_presentation.R includes.R render.R
draft.R ioslides_presentation.R render_site.R
github_document.R knit_print.R rtf_document.R
html_dependencies.R latex_dependencies.R shiny_module.R
html_document_base.R list_builder.R shiny_prerendered.R
html_document.R md_document.R shiny.R
html_extras.R odt_document.R slidy_presentation.R
html_fragment.R output_format.R stack.R
html_notebook_output.R pandoc.R tufte_handout.R
html_notebook.R params.R util.R
html_paged.R pdf_document.R word_document.R
html_parser.R performance.R zzz.R
html_resource_copy.R powerpoint_presentation.R
html_resources.R relative_to.R为什么消息来源被隐瞒了?
我应该如何获取它们?除了tar zxf之外,还有什么“最佳实践”的方法吗?我正在寻找一个安装,它允许我修改一个或多个源文件,重新构建包,并将其重新加载到我的R进程中。一个额外的奖励将是与源代码背后的源代码控制系统,例如,git。
发布于 2019-02-28 01:43:38
您可以像以前一样下载源代码,根据需要修改R文件,然后使用以下命令重新安装:
install.packages('/path/to/my_rmarkdown_1.11', repos= NULL, type= 'source')https://stackoverflow.com/questions/54911240
复制相似问题