Skip to content

Commit 6ccf04a

Browse files
committed
Update R documentation (4.4.2)
1 parent 0619b8c commit 6ccf04a

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

docs/file-scrapers.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,14 @@ tar xj --strip-components=1
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"
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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ def call
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ class R < FileScraper
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/'

0 commit comments

Comments
 (0)