« What Determines the Perception of Fairness Regarding Household Division of Labor between Spouses? | Main

August 24, 2016

How to start a new package project from devtool

1. get all the necessary tool.

install.packages(c("devtools", "roxygen2", "testthat", "knitr"))
library(devtools)
library(roxygen2)
library(testthat)
library(knitr)

2. Then, create a package project from devtool with the path. If it works, it goes like this.

> devtools::create("~/SummerQtr2016/TryNewPackage/MyNew3")
Creating package 'MyNew3' in 'C:/Users/Mito/Documents/SummerQtr2016/TryNewPackage'
No DESCRIPTION found. Creating with values:


Package: MyNew3
Title: What the Package Does (one line, title case)
Version: 0.0.0.9000
Authors@R: person("First", "Last", email = "first.last@example.com", role = c("aut", "cre"))
Description: What the package does (one paragraph).
Depends: R (>= 3.3.1)
License: What license is it under?
Encoding: UTF-8
LazyData: true

I failed couple of times trying to create a project from RStudio. It seems I can ignore Rstudio's menu to get started.




« What Determines the Perception of Fairness Regarding Household Division of Labor between Spouses? | Main

Comments

Post a comment



(Not displayed with comment.)


Comments are moderated, and will not appear on this weblog until the author has approved them.



« What Determines the Perception of Fairness Regarding Household Division of Labor between Spouses? | Main