-
Notifications
You must be signed in to change notification settings - Fork 1
/
devtools_history.R
141 lines (100 loc) · 3.16 KB
/
devtools_history.R
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
library(usethis)
library(devtools)
file.edit("devtools_history.R") # to create a file
usethis::use_build_ignore("devtools_history.R") # to ignore the file
usethis::use_build_ignore(".lintr")
file.edit(".lintr") # to create a file
use_gpl3_license()
use_cran_comments()
use_data_table()
use_pipe()
styler::style_file("metadata/combine_journal_lists.R")
lintr::lint("metadata/combine_journal_lists.R")
usethis::use_testthat()
styler::style_file("R/read_bib2dt.R")
lintr::lint("R/read_bib2dt.R")
styler::style_file("R/add_abbrtable.R")
lintr::lint("R/add_abbrtable.R")
styler::style_file("R/replace_field.R")
lintr::lint("R/replace_field.R")
styler::style_file("R/abbr_bib.R")
lintr::lint("R/abbr_bib.R")
document()
styler::style_pkg()
lintr::lint_package()
use_package("purrr")
use_package("stringr")
use_import_from("purrr",'map')
use_import_from("purrr",'map2')
use_import_from("purrr",'map_chr')
use_import_from("tidytable",'as_tidytable')
use_import_from("tidytable",'enframe')
use_import_from("data.table",'fread')
use_import_from("data.table",'as.data.table')
use_import_from("data.table",'rbindlist')
use_import_from("data.table",'merge.data.table')
use_import_from("data.table",'is.data.table')
use_import_from("data.table",'setnames')
use_import_from("stringr",'str_squish')
use_import_from("stringr",'str_replace_all')
use_import_from("stringr",'str_extract')
use_import_from("stringr",'str_to_upper')
use_import_from("stringr",'str_split')
use_import_from("stringr",'str_dup')
use_import_from("stringr",'str_pad')
use_import_from("stringr",'str_count')
use_import_from("stringi",'stri_unescape_unicode')
document()
check()
styler::style_file("inst/shiny-examples/appckwx/app.R")
lintr::lint("inst/shiny-examples/appckwx/app.R")
rm(list=ls())
load_all()
devtools::install()
devtools::document()
devtools::check(args = c('--as-cran'))
devtools::check_rhub()
# usethis::use_readme_rmd()
usethis::use_testthat()
roxygen2::roxygenise()
devtools::document(roclets=c('rd', 'collate', 'namespace'))
devtools::build_readme()
document()
devtools::check(args = c('--as-cran'))
devtools::check_win_devel()
rhub::check()
# check on different platforms
rhub::check_on_windows()
devtools::check_rhub()
rhub::check_on_debian()
rhub::check_for_cran()
use_travis()
use_travis_badge()
use_lifecycle_badge()
use_cran_badge()
covr::package_coverage(type="all")# test coverage badge
use_coverage() # add a badge to README.md
use_github_action("test-coverage") # test coverage action
# to create badges
use_cran_badge()
use_lifecycle_badge("stable")
use_lifecycle()
# add test code
use_test("add_abbrtable.R")
use_test("read_bib2dt")
use_test("replace_field.R")
devtools::build_readme()
rm(list = ls())
document()
devtools::test()
load_all()
file = "/Users/zsc/Desktop/rmd/weakfuzzyaik.bib"
out.file = "/Users/zsc/Desktop/aa3.bib"
user.csv = ''
author.connect = c("nothing", "\\\\&", "&", "and")
kk = abbr_bib(file = "/Users/zsc/Desktop/rmd/weakfuzzyaik.bib",
out.file = "/Users/zsc/Desktop/aa3.bib",
user.csv = '' )
abbr_bib_only_journal(file = "/Users/zsc/Desktop/rmd/weakfuzzyaik.bib",
out.file = "/Users/zsc/Desktop/aa2.bib",
user.csv = '' )