Browse Source

Update R documentation (4.4.2)

Simon Legner 1 year ago
parent
commit
6ccf04a8d6
3 changed files with 11 additions and 4 deletions
  1. 8 1
      docs/file-scrapers.md
  2. 2 2
      lib/docs/filters/r/clean_html.rb
  3. 1 1
      lib/docs/scrapers/r.rb

+ 8 - 1
docs/file-scrapers.md

@@ -233,7 +233,14 @@ tar xj --strip-components=1
 ```
 
 ## R
+
 ```bash
+sudo dnf install bzip2-devel
+sudo dnf install gcc-gfortran
+sudo dnf install libcurl-devel
+sudo dnf install texinfo
+sudo dnf install xz-devel
+
 DEVDOCSROOT=docs/r
 RLATEST=https://cran.r-project.org/src/base/R-latest.tar.gz # or /R-${VERSION::1}/R-$VERSION.tar.gz
 
@@ -243,7 +250,7 @@ mkdir -p "$RSOURCEDIR" "$RBUILDDIR" "$DEVDOCSROOT"
 
 # Download, configure, and build with static HTML pages
 curl "$RLATEST" | tar -C "$RSOURCEDIR" -xzf - --strip-components=1
-(cd "$RBUILDDIR" && "$RSOURCEDIR/configure" --enable-prebuilt-html --with-recommended-packages --disable-byte-compiled-packages --disable-shared --disable-java)
+(cd "$RBUILDDIR" && "$RSOURCEDIR/configure" --enable-prebuilt-html --with-recommended-packages --disable-byte-compiled-packages --disable-shared --disable-java --with-readline=no --with-x=no)
 make _R_HELP_LINKS_TO_TOPICS_=FALSE -C "$RBUILDDIR"
 
 # Export all html documentation built − global, and per-package

+ 2 - 2
lib/docs/filters/r/clean_html.rb

@@ -13,8 +13,8 @@ module Docs
           title = at_css('h2')
           title.inner_html = "<code>#{slug_parts[3]}</code> #{title.content}"
 
-          summary = at_css('table[summary]')
-          summary.remove if summary
+          css('table:contains("R Documentation")').remove
+          css('table[summary]').remove
 
           css('hr ~ *, hr').remove
 

+ 1 - 1
lib/docs/scrapers/r.rb

@@ -3,7 +3,7 @@ module Docs
     self.name = 'R'
     self.slug = 'r'
     self.type = 'simple'
-    self.release = '4.1.0'
+    self.release = '4.4.2'
     self.links = {
       home: 'https://www.r-project.org/',
       code: 'https://svn.r-project.org/R/'