-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathR-pkg-setup.R
More file actions
41 lines (28 loc) · 802 Bytes
/
Copy pathR-pkg-setup.R
File metadata and controls
41 lines (28 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
## Elearning NFI - Raw data
## Gael Sola, FAO
## November 2021
## Libs
library(devtools)
library(usethis)
library(roxygen2)
library(tidyverse)
## Make package files
# usethis::create_package("D:/github-repos/eNFIrawdata")
## create NFI data files
tt <- list.files("data-tmp", full.names = T)
for (i in seq_along(tt)){
tt_name <- tt[i] %>% str_remove(".*/") %>% str_remove(".csv")
assign(tt_name, read_csv(tt[i]))
}
usethis::use_data(raw_plot, raw_tree, raw_species, raw_wdsp, raw_wdgn)
## Check for recommended compression
tools::checkRdaFiles("data/raw_wdgn.Rda")
## data description added to R/
## Check
devtools::check()
## convert Roxygen to .Rd files in man/
devtools::document()
## Install
devtools::install()
## Add github actions
usethis::use_github_action("check-standard")