History

Update R documentation (4.4.2)

Simon Legner committed 1 year ago

Commit 6ccf04a1 parent 0619b8c3 files · +11 −4Browse files

Unified · Split

3 files
  1. docs/file-scrapers.md +8 −1
  2. lib/docs/filters/r/clean_html.rb +2 −2
  3. lib/docs/scrapers/r.rb +1 −1
docs/file-scrapers.md+8−1
@@ -233,7 +233,14 @@ tar xj --strip-components=1 · 232 unmodified lines
233233 ```
234234
235235 ## R
236+
236237 ```bash
238+sudo dnf install bzip2-devel
239+sudo dnf install gcc-gfortran
240+sudo dnf install libcurl-devel
241+sudo dnf install texinfo
242+sudo dnf install xz-devel
243+
237244 DEVDOCSROOT=docs/r
238245 RLATEST=https://cran.r-project.org/src/base/R-latest.tar.gz # or /R-${VERSION::1}/R-$VERSION.tar.gz
239246
@@ -243,7 +250,7 @@ mkdir -p "$RSOURCEDIR" "$RBUILDDIR" "$DEVDOCSROOT" · 3 unmodified lines
243250
244251 # Download, configure, and build with static HTML pages
245252 curl "$RLATEST" | tar -C "$RSOURCEDIR" -xzf - --strip-components=1
246−(cd "$RBUILDDIR" && "$RSOURCEDIR/configure" --enable-prebuilt-html --with-recommended-packages --disable-byte-compiled-packages --disable-shared --disable-java)
253+(cd "$RBUILDDIR" && "$RSOURCEDIR/configure" --enable-prebuilt-html --with-recommended-packages --disable-byte-compiled-packages --disable-shared --disable-java --with-readline=no --with-x=no)
247254 make _R_HELP_LINKS_TO_TOPICS_=FALSE -C "$RBUILDDIR"
248255
249256 # Export all html documentation built − global, and per-package
lib/docs/filters/r/clean_html.rb+2−2
@@ -13,8 +13,8 @@ module Docs · 12 unmodified lines
1313 title = at_css('h2')
1414 title.inner_html = "<code>#{slug_parts[3]}</code> #{title.content}"
1515
16− summary = at_css('table[summary]')
17− summary.remove if summary
16+ css('table:contains("R Documentation")').remove
17+ css('table[summary]').remove
1818
1919 css('hr ~ *, hr').remove
2020
lib/docs/scrapers/r.rb+1−1
@@ -3,7 +3,7 @@ module Docs · 2 unmodified lines
33 self.name = 'R'
44 self.slug = 'r'
55 self.type = 'simple'
6− self.release = '4.1.0'
6+ self.release = '4.4.2'
77 self.links = {
88 home: 'https://www.r-project.org/',
99 code: 'https://svn.r-project.org/R/'