diff --git a/docs/file-scrapers.md b/docs/file-scrapers.md index a15d38ad..3078e176 100644 --- a/docs/file-scrapers.md +++ b/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 diff --git a/lib/docs/filters/r/clean_html.rb b/lib/docs/filters/r/clean_html.rb index 8d7b0e20..c89812e6 100644 --- a/lib/docs/filters/r/clean_html.rb +++ b/lib/docs/filters/r/clean_html.rb @@ -13,8 +13,8 @@ module Docs title = at_css('h2') title.inner_html = "#{slug_parts[3]} #{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 diff --git a/lib/docs/scrapers/r.rb b/lib/docs/scrapers/r.rb index 28a97c2c..db08169c 100644 --- a/lib/docs/scrapers/r.rb +++ b/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/'