MyNixOS website logo
Description

Convert README to Vignette During Package Installation.

Convert README.md to vignettes when installing packages without vignettes.

readme2vignette

The goal of readme2vignette is to attempt to install a package directly GitHub or CRAN with convert README.md to Vignette during Package installation.

Based on remotes::install_github() and remotes::install_cran() that remotes version 2.4.2.

Installation

You can install the released version of readme2vignette from CRAN with:

install.packages("readme2vignette")

You can install the development version of readme2vignette like so:

install.packages("remotes")
remotes::install_github("indenkun/readme2vignette")

Example

install_cran_with_readme()

The basic usage is the same as remotes::install_cran().

If you try to install a package with README.md but no vignette from CRAN Repository using readme2vignette::install_cran_with_readme(), by default the argument readme_to_vignette is TRUE and the contents of README.md becomes a vignette called README.

Installation from binary packages is not supported. Installation must always be done from the sourceco package.

readme2vignette::install_github_with_readme("MissMech")

Therefore, the contents of README.md can be referenced in the local environment by vignette("README", package = "packagename").

vignette("README", package = "MissMech")

install_github_with_reademe()

The basic usage is the same as remotes::install_github().

If you try to install a package with README.md but no vignette from GitHub using readme2vignette::install_github_with_readme(), by default the argument readme_to_vignette is TRUE and the contents of README.md becomes a vignette called README.

readme2vignette::install_github_with_readme("indenkun/MissMech")

Therefore, the contents of README.md can be referenced in the local environment by vignette("README", package = "packagename").

vignette("README", package = "MissMech")

Note

The remotes package on which this code is based was created by the author of remotes and is now released at MIT.

The author of the remotes package is currently listed as Developed by Gábor Csárdi, Jim Hester, Hadley Wickham, Winston Chang, Martin Morgan, Dan Tenenbaum, Posit Software, PBC.

See r-lib/remote for detailed authorship.

Under the current specification, the images in the README.md are copied for the figures in the directories under man/figures/, but not for the images in other directories, which are missing.

License

MIT

Imports packages

  • desc
  • fs
  • knitr
  • pkgbuild
  • remotes
  • rmarkdown
  • usethis
  • utils.
Metadata

Version

0.1.0

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows