[R: New Features on beginr] Automatically generate a self-contained package
Repository
https://github.com/pzhaonet/beginr
Brief Intro and curriculum
If you are an R beginner and you feel it difficult to learn, don’t worry. R can be fun and easy if you use the beginr package, which I developed for R beginners. beginr provides many useful functions, including some functions which help the beginners recall some commands in R, some wrapped plotting functions which can plot complex figures, some functions which can easily read and safely write data files, or process data frames. Furthermore, the source codes of beginr package were written on beginner’ level with the most commonly used functions. Any beginner can simply follow the source code so as to get ideas to write their own codes and even develop their own packages.
A brief introduction can be found in one of my previous post:
New Features
Commit: packr()
Most R beginners think that developing an R package is a mission impossible. It is not true. With the new function packr() , users can create a user-defined useful R packages easily. They can specify in packr()a group of packages (e.g. foo_1, foo_2, foo_x) which they often use and the new package name, say foobar, then a new package called foobar will be generated.
When loading the foobar function, the package group, i.e. foo_1, foo_2, and foo_x are loaded simultaneously. Moreover, a few functions are available in the foobar package , which are well documented in the help. Briefly speaking, these functions can update the package group to the latest versions, check the conflicts with other loaded packages, list the dependencies, and so on. The user can share the foobar package to friends or the community as well.
The core codes of packr() are written in R/packr.R, which calls multiple scripts and templates in inst/skeleton.
GitHub Account
Leave [R: New Features on beginr] Automatically generate a self-contained package to:
Read more #utopian-io posts
Best Posts From dapeng
We have not curated any of dapeng's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From dapeng
- 老年人技术故障重复发帖
- 卷铺盖走人
- 无题
- Tutorial for pinyin: Installation and Quick Start
- 声律启蒙第一周
- 《Steem 指南》快讯:域名 steemh.org 停用
- [New R Package] sinx: R fortunes in Chinese
- [New features on R rosr] A shiny GUI and RStudio addin for choosing and creating sub-projects
- 68
- [New R Package] rosr: Create academic R markdown projects for open science and reproducible research
- [R: New Features on beginr] Automatically generate a self-contained package
- [R: New Features on mindr] v.1.2.0 released: universal function and directory tree
- [New R Package] rmd: Easily Install, Load and Explore the R Markdown Family
- 辞赋悬日月,台榭空山丘
- 将幻灯忍者 xaringan 幻灯片发布到网上的方法
- [R: New Features on mindr] New strategy of writing R comments. Conversion between .R scripts and .mm mind maps
- 用 markdown 的逻辑写 R 脚本注释(2)
- 金庸早已远逝,我辈江湖犹存
- 用 markdown 的逻辑写 R 脚本注释
- [R: New Features on mindr] Support LaTeX Equations. Conversion between .R scripts and .Rmd documents