Skip to content

Commit ab9b650

Browse files
committed
Get things ready for submission to CRAN.
1 parent e53f837 commit ab9b650

File tree

4 files changed

+29
-25
lines changed

4 files changed

+29
-25
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: mathjaxr
2-
Version: 1.1-3
2+
Version: 1.2-0
33
Date: 2021-01-30
44
Title: Using 'Mathjax' in Rd Files
55
Authors@R: person(given = "Wolfgang", family = "Viechtbauer", role = c("aut","cre"), email = "wvb@wvbauer.com", comment = c(ORCID = "0000-0003-3463-4063"))

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# mathjaxr 1.1-3 (2021-01-30)
1+
# mathjaxr 1.2-0 (2021-01-30)
22

33
* upgraded MathJax version to 3.1.2
44

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ mathjaxr: Using Mathjax in Rd Files
33

44
[![R build status](https://github.com/wviechtb/mathjaxr/workflows/R-CMD-check/badge.svg)](https://github.com/wviechtb/mathjaxr/actions)
55
[![CRAN Version](https://www.r-pkg.org/badges/version/mathjaxr)](https://CRAN.R-project.org/package=mathjaxr)
6-
![devel Version](https://img.shields.io/badge/devel-1.1--3-brightgreen.svg)
6+
![devel Version](https://img.shields.io/badge/devel-1.2--0-brightgreen.svg)
77

88
## Description
99

@@ -47,18 +47,21 @@ where ![\mu](https://render.githubusercontent.com/render/math?math=%5Cmu) denote
4747

4848
## Installation
4949

50-
The current official (i.e., [CRAN](https://cran.r-project.org/package=mathjaxr)) release can be installed directly within R with:
50+
The current official (i.e., [CRAN](https://cran.r-project.org/package=mathjaxr)) release can be installed within R with:
5151

5252
```r
5353
install.packages("mathjaxr")
5454
```
5555

56-
After installing the [remotes](https://cran.r-project.org/package=remotes) package with ```install.packages("remotes")```, the development version of the `mathjaxr` package can be installed with:
56+
The development version of the package can be installed with:
5757

5858
```r
59+
install.packages("remotes")
5960
remotes::install_github("wviechtb/mathjaxr")
6061
```
6162

63+
This builds the package from source based on the current version on [GitHub](https://github.com/wviechtb/mathjaxr).
64+
6265
## Meta
6366

6467
The `mathjaxr` package is licensed under the [GNU General Public License Version 3](https://www.gnu.org/licenses/gpl-3.0.txt), while MathJax itself is licensed under the [Apache License, Version 2.0](https://github.com/mathjax/MathJax/blob/master/LICENSE). To report any issues or bugs, please go [here](https://github.com/wviechtb/mathjaxr/issues).

src/install.libs.R

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
1-
srcdir <- "../src"
1+
srcdir <- "../src"
22
destdir <- "../inst/doc"
3-
jsfiles <- list.files(srcdir, pattern = "[.]js$",
4-
recursive = TRUE)
5-
fontfiles <- list.files(srcdir, pattern = "[.]woff$",
6-
recursive = TRUE)
3+
4+
jsfiles <- list.files(srcdir, pattern = "[.]js$", recursive = TRUE)
5+
fontfiles <- list.files(srcdir, pattern = "[.]woff$", recursive = TRUE)
6+
77
minify <- requireNamespace("js", quietly = TRUE)
8+
89
for (f in jsfiles) {
9-
dir <- file.path(destdir, dirname(f))
10-
if (!dir.exists(dir))
11-
dir.create(dir, recursive = TRUE)
12-
if (minify) {
13-
mini <- js::uglify_files(file.path(srcdir, f), unused = FALSE)
14-
writeLines(mini, file.path(dir, basename(f)))
15-
} else
16-
file.copy(file.path(srcdir, f),
17-
file.path(destdir, f))
10+
dir <- file.path(destdir, dirname(f))
11+
if (!dir.exists(dir))
12+
dir.create(dir, recursive = TRUE)
13+
if (minify) {
14+
mini <- js::uglify_files(file.path(srcdir, f), unused = FALSE)
15+
writeLines(mini, file.path(dir, basename(f)))
16+
} else {
17+
file.copy(file.path(srcdir, f), file.path(destdir, f))
18+
}
1819
}
20+
1921
for (f in fontfiles) {
20-
dir <- file.path(destdir, dirname(f))
21-
if (!dir.exists(dir))
22-
dir.create(dir, recursive = TRUE)
23-
file.copy(file.path(srcdir, f),
24-
file.path(destdir, f))
25-
}
22+
dir <- file.path(destdir, dirname(f))
23+
if (!dir.exists(dir))
24+
dir.create(dir, recursive = TRUE)
25+
file.copy(file.path(srcdir, f), file.path(destdir, f))
26+
}

0 commit comments

Comments
 (0)