Skip to content

Commit 07b44a2

Browse files
committed
up
1 parent 1fe5ae1 commit 07b44a2

1 file changed

Lines changed: 29 additions & 32 deletions

File tree

documentPackage.R

Lines changed: 29 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,31 @@
11
{
2-
# setup environment
3-
rm( list = ls() )
4-
setwd("~/Documents/DescriptiveRepresentationCalculator-software")
5-
PackageName <- "DescriptiveRepresentationCalculator"
6-
package_path <- sprintf("~/Documents/%s-software/%s",PackageName,PackageName)
7-
versionNumber <- "1.1.0"
8-
9-
10-
# build documentation
11-
library(devtools); library(utils)
12-
devtools::document(package_path)
13-
try(file.remove("./DescriptiveRepresentationCalculator.pdf"),T)
14-
devtools::document(package_path)
15-
#devtools::build_manual(package_path)
16-
system(paste(shQuote(file.path(R.home("bin"), "R")),
17-
"CMD", "Rd2pdf", shQuote(package_path)))
18-
19-
setwd("~/Documents/")
20-
21-
# build tar
22-
system( paste(shQuote(file.path(R.home("bin"), "R")),
23-
"R CMD build --resave-data", shQuote(package_path)) )
24-
25-
# check package to ensure it meets CRAN standards.
26-
devtools::check( package_path, cran = T )
27-
28-
# check as cran
29-
system( paste(shQuote(file.path(R.home("bin"), "R")),
30-
"R CMD check --as-cran",
31-
shQuote(
32-
paste(PackageName, "_", versionNumber, ".tar.gz", sep = "")
33-
)) )
2+
# setup environment
3+
rm( list = ls() )
4+
setwd("~/Documents/DescriptiveRepresentationCalculator-software")
5+
PackageName <- "DescriptiveRepresentationCalculator"
6+
package_path <- sprintf("~/Documents/%s-software/%s",PackageName,PackageName)
7+
versionNumber <- "1.1.0"
8+
9+
# build documentation
10+
library(devtools); library(utils)
11+
try(file.remove("./DescriptiveRepresentationCalculator.pdf"),T)
12+
devtools::document(package_path)
13+
system(paste(shQuote(file.path(R.home("bin"), "R")),
14+
"CMD", "Rd2pdf", shQuote(package_path)))
15+
16+
setwd("~/Documents/")
17+
18+
# build tar
19+
system( paste(shQuote(file.path(R.home("bin"), "R")),
20+
"R CMD build --resave-data", shQuote(package_path)) )
21+
22+
# check package to ensure it meets CRAN standards.
23+
devtools::check( package_path, cran = T )
24+
25+
# check as cran
26+
system( paste(shQuote(file.path(R.home("bin"), "R")),
27+
"R CMD check --as-cran",
28+
shQuote(
29+
paste(PackageName, "_", versionNumber, ".tar.gz", sep = "")
30+
)) )
3431
}

0 commit comments

Comments
 (0)