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
233```233```
234 234
235## R235## R
236
236```bash237```bash
238sudo dnf install bzip2-devel
239sudo dnf install gcc-gfortran
240sudo dnf install libcurl-devel
241sudo dnf install texinfo
242sudo dnf install xz-devel
243
237DEVDOCSROOT=docs/r244DEVDOCSROOT=docs/r
238RLATEST=https://cran.r-project.org/src/base/R-latest.tar.gz # or /R-${VERSION::1}/R-$VERSION.tar.gz245RLATEST=https://cran.r-project.org/src/base/R-latest.tar.gz # or /R-${VERSION::1}/R-$VERSION.tar.gz
239 246
@@ -243,7 +250,7 @@ mkdir -p "$RSOURCEDIR" "$RBUILDDIR" "$DEVDOCSROOT" · 3 unmodified lines
243 250
244# Download, configure, and build with static HTML pages251# Download, configure, and build with static HTML pages
245curl "$RLATEST" | tar -C "$RSOURCEDIR" -xzf - --strip-components=1252curl "$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)
247make _R_HELP_LINKS_TO_TOPICS_=FALSE -C "$RBUILDDIR"254make _R_HELP_LINKS_TO_TOPICS_=FALSE -C "$RBUILDDIR"
248 255
249# Export all html documentation built − global, and per-package256# 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
13 title = at_css('h2')13 title = at_css('h2')
14 title.inner_html = "<code>#{slug_parts[3]}</code> #{title.content}"14 title.inner_html = "<code>#{slug_parts[3]}</code> #{title.content}"
15 15
16 summary = at_css('table[summary]')16 css('table:contains("R Documentation")').remove
17 summary.remove if summary17 css('table[summary]').remove
18 18
19 css('hr ~ *, hr').remove19 css('hr ~ *, hr').remove
20 20
lib/docs/scrapers/r.rb+1−1
@@ -3,7 +3,7 @@ module Docs · 2 unmodified lines
3 self.name = 'R'3 self.name = 'R'
4 self.slug = 'r'4 self.slug = 'r'
5 self.type = 'simple'5 self.type = 'simple'
6 self.release = '4.1.0'6 self.release = '4.4.2'
7 self.links = {7 self.links = {
8 home: 'https://www.r-project.org/',8 home: 'https://www.r-project.org/',
9 code: 'https://svn.r-project.org/R/'9 code: 'https://svn.r-project.org/R/'