9/27/2023 0 Comments Install r package linuxroxygen2 - Enables automatic documentation generation by describing your functions in comments next to their definitions.rmarkdown - Writing your documentation in RMarkdown allows you to programmatically create your README files and vignettes and render code examples and data from your package.rcmdcheck - Allows you to run R CMD check from a R session and catch any issues before you submit your package to CRAN, if you choose to do so.It can be as simple as usethis::use_pkgdown() and pkgdown::build_site(). pkgdown - One of the easiest ways to quickly and easily build a website for your package, used by many popular R packages.goodpractice - Out of the box goodpractice::gp() runs a series of packages checks, performs code coverage, source code linting and cyclomatic complexity to make sure your package will be easy to use as possible.It does assume you use roxygen2 for documentation and testthat for testing, both which are used by many popular R packages. devtools - Provides many helpful R functions that help make package development as easy as possible.In an upcoming post I’ll go through an example of using them in a real project. The following packages are extremely useful to any R developer and I highly recommend you install them all. Please use the appropriate package manager for your system. to install system dependencies for Debian and Ubuntu-based Linux distros including Pop!_OS, Ubuntu MATE and Linux Mint. # Debian and Ubuntu-based Linux Distro sudo apt install -y build-essential # Fedora, CentOS, RHEL sudo yum install -y make automake gcc gcc-c++ kernel-devel # or if you don't mind extra packages on CentOS RHEL: sudo yum groupinstall 'Development Tools' # Arch Linux sudo pacman -Sy base-develįor the rest of the examples below, I’ll be using sudo apt install. Open a new terminal and run the corresponding line for your Linux distro. sudo is required to install additional packages.ĭifferent Linux distros will have different package managers, as shown below in the example for installing build-essential. This is known as a system dependency, and must be installed before R packages can be installed. On Debian and Ubuntu-based Linux distros, build-essential is required to build some R packages which require a C and C++ compiler.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |