I am using pkgdown
package to generate the elegant and static manual page for R package (called RTCGA). When I run the code to produce the static documentation as website I use following commands
> pkgdown::build_site()
Initialising site -------------------------------------------------------------------------------------
Copying '/home/mkosinski/R/x86_64-pc-linux-gnu-library/3.3/pkgdown/assets/jquery.sticky-kit.min.js'
Copying '/home/mkosinski/R/x86_64-pc-linux-gnu-library/3.3/pkgdown/assets/link.svg'
Copying '/home/mkosinski/R/x86_64-pc-linux-gnu-library/3.3/pkgdown/assets/pkgdown.css'
Copying '/home/mkosinski/R/x86_64-pc-linux-gnu-library/3.3/pkgdown/assets/pkgdown.js'
Building home -----------------------------------------------------------------------------------------
Writing '/home/mkosinski/GitHub/RTCGA/docs/index.html'
Building function reference ---------------------------------------------------------------------------
Loading RTCGA
Welcome to the RTCGA (version: 1.5.1).
trying URL 'http://gdac.broadinstitute.org/runs/stddata__2015_11_01/data/ACC/20151101/gdac.broadinstitute.org_ACC.Merge_mirnaseq__illuminahiseq_mirnaseq__bcgsc_ca__Level_3__miR_gene_expression__data.Level_3.2015110100.0.0.tar.gz'
Content type 'unknown' length 309876 bytes (302 KB)
==================================================
downloaded 302 KB
Warning: Topics missing from index: RTCGA-package, theme_RTCGA
Building articles -------------------------------------------------------------------------------------
Building article 'RTCGA_Workflow.html'
Building article 'Web_Applications.html'
This code is evaluated in the root of RTCGA
package project and gives information that RTCGA was loaded and the documentation was created.
But I have found a bug in the documentation in most pages - there is an error telling
Error: package ‘RTCGA’ required by ‘RTCGA.rnaseq’ could not be found
So none of examples can be run. Moreover when I run library(RTCGA.rnaseq)
after I used build_site
I can not load dependent RTCGA
package anymore
> library(RTCGA)
> library(RTCGA.rnaseq)
Error: package ‘RTCGA’ required by ‘RTCGA.rnaseq’ could not be found
When I run library(RTCGA.rnaseq)
in the new session without calling the pkgdown::build_site
the dependent RTCGA
package loads normally with no warnings.
I suspect that this is caused by any settings that build_site
performs but I have no idea on how to resolve them and how to build proper static documentation with the usage of pkgdown
package.
Any comments?