GithubHelp home page GithubHelp logo

r-manuals's Introduction

r-manuals

This project translates the official R manuals to quarto with the aim of lightly re-styling for better readability:

  • Separate the manual into page for each chapter
  • Code highlighting and formatting
  • Footnotes in sidebar
  • Improved searching

You can view the resulting https://rstudio.github.io/r-manuals

How this works

Background information

Building the manuals

The build script is in the file scripts/build_website.R.

In more detail

For each manual:

  • Download the relevant texinfo manual files and associated images and environment variables
  • Run makeinfo to convert from .texi to HTML
  • Run pandoc with additional Lua filters to convert to markdown
  • Perform additional processing and conversion in R
  • Include the markdown files in a quarto book template
  • Render the manual to quarto

Then combine the various quarto books into a quarto website.

Note about installing makeinfo

On Linux, you can easily install the makeinfo utility using sudo apt install texinfo.

On Windows, makeinfo is installed as part of RTools40.

Licensing

We provide the conversion code, i.e. this collection of R scripts and pandoc lua filters, under the MIT license.

The original R manuals are not under this MIT license. Instead, these manuals contain the following license:

Copyright © 1999–2021 R Core Team

Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.

Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.

Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions, except that this permission notice may be stated in a translation approved by the R Core Team.

r-manuals's People

Contributors

andrie avatar cderv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

r-manuals's Issues

Loading / navigation seems slow

This will be frustrating in its lack of specifics. But I generally perceive that the manual sites are "slow". To be more specific, the one I only interact with much is the Writing R Extensions. I don't really know why that would be 🤔 But I've noticed it enough times, over a reasonably long time period, that I wanted to raise it.

We generally use GitHub Pages for pkgdown sites and I haven't noticed similar slowness there. So I'm not sure if there's any point in considering deployment to, say, Netlify.

Can those of you with more knowledge of the project speculate if there's anything about its structure that might explain the slowness? Of course, it's possible that I'm just getting unlucky.

The "double backtick problem"

Example .texi input:

... which can be found in the @file{src/library/@var{pkg}/man} directories ...

https://github.com/wch/r-source/blob/a505a59a02f445e4918777a585270faee97c42e8/doc/manual/R-exts.texi#L6606

Leads to this in the official .html manual:

... which can be found in the <samp>src/library/<var>pkg</var>/man</samp> directories ...

But like this in the .html from the Quarto-ized manual:

... which can be found in the <var>src/library/``pkg</var><code>/man</code> directories ...

which looks like this:

Screen Shot 2022-10-27 at 11 45 48 AM


Example .texi input:

\name@{@var{name}@}

https://github.com/wch/r-source/blob/a505a59a02f445e4918777a585270faee97c42e8/doc/manual/R-exts.texi#L6727

Leads to this in the official .html manual:

<code>\name{<var>name</var>}</code>

But like this in the .html from the Quarto-ized manual:

<var>\name{``name</var><code>}</code>

which looks like this:
Screen Shot 2022-10-27 at 11 45 57 AM

Index has links that are going nowhere

Thanks for putting this together as a quarto demo -- it's quite compelling.

I just tried to help somebody by looking up / referencing R_LIBS_USER which does of course exist in the index for the R Inst + Admin manual -- but its link

 https://rstudio.github.io/r-manuals/r-admin/Add_002don-packages.html#index-r_005flibs_005fuser

gets us nowhere. It should probably go to

 https://rstudio.github.io/r-manuals/r-admin/Add-on-packages.html#managing-libraries

Would be sweet if you can massage that into working...

Fix GH builds

Build is failling since some months now. Need to fix to get new manuals version

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.