Skip to content

Commit 26e366a

Browse files
committed
Trim all trailing whitespace
1 parent 65f0ebe commit 26e366a

16 files changed

+110
-111
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ A description of what you expected to happen.
2020
Your operating system (e.g. mac os x 10.15, windows 10, etc.)
2121

2222
**CmdStanR version number**
23-
Your CmdStanR version number (e.g. from `packageVersion("cmdstanr")`).
23+
Your CmdStanR version number (e.g. from `packageVersion("cmdstanr")`).
2424

2525
**Additional context**
2626
Add any other context about the problem here.

.github/pull_request_template.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55

66
#### Summary
77

8-
Please describe the purpose of the pull request.
8+
Please describe the purpose of the pull request.
99

1010
#### Copyright and Licensing
1111

12-
Please list the copyright holder for the work you are submitting
13-
(this will be you or your assignee, such as a university or company):
12+
Please list the copyright holder for the work you are submitting
13+
(this will be you or your assignee, such as a university or company):
1414
**INSERT COPYRIGHT HOLDER HERE**
1515

1616

17-
By submitting this pull request, the copyright holder is agreeing to
17+
By submitting this pull request, the copyright holder is agreeing to
1818
license the submitted work under the following licenses:
1919

20-
- Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
20+
- Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
2121
- Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

DESCRIPTION

+14-14
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,24 @@ Package: cmdstanr
22
Title: R Interface to 'CmdStan'
33
Version: 0.5.2.1
44
Date: 2022-04-24
5-
Authors@R:
5+
Authors@R:
66
c(person(given = "Jonah", family = "Gabry", role = c("aut", "cre"),
77
email = "[email protected]"),
8-
person(given = "Rok", family = "Češnovar", role = "aut",
9-
email = "[email protected]"),
10-
person(given = "Ben", family = "Bales", role = "ctb"),
11-
person(given = "Mitzi", family = "Morris", role = "ctb"),
12-
person(given = "Mikhail", family = "Popov", role = "ctb"),
13-
person(given = "Mike", family = "Lawrence", role = "ctb"),
8+
person(given = "Rok", family = "Češnovar", role = "aut",
9+
email = "[email protected]"),
10+
person(given = "Ben", family = "Bales", role = "ctb"),
11+
person(given = "Mitzi", family = "Morris", role = "ctb"),
12+
person(given = "Mikhail", family = "Popov", role = "ctb"),
13+
person(given = "Mike", family = "Lawrence", role = "ctb"),
1414
person(given = c("William", "Michael"), family = "Landau", role = "ctb",
15-
email = "[email protected]", comment = c(ORCID = "0000-0003-1878-3253")),
15+
email = "[email protected]", comment = c(ORCID = "0000-0003-1878-3253")),
1616
person(given = "Jacob", family = "Socolar", role = "ctb"))
1717
Description: A lightweight interface to 'Stan' <https://mc-stan.org>.
18-
The 'CmdStanR' interface is an alternative to 'RStan' that calls the command
19-
line interface for compilation and running algorithms instead of interfacing
20-
with C++ via 'Rcpp'. This has many benefits including always being compatible
21-
with the latest version of Stan, fewer installation errors, fewer unexpected
22-
crashes in RStudio, and a more permissive license.
18+
The 'CmdStanR' interface is an alternative to 'RStan' that calls the command
19+
line interface for compilation and running algorithms instead of interfacing
20+
with C++ via 'Rcpp'. This has many benefits including always being compatible
21+
with the latest version of Stan, fewer installation errors, fewer unexpected
22+
crashes in RStudio, and a more permissive license.
2323
License: BSD_3_clause + file LICENSE
2424
URL: https://mc-stan.org/cmdstanr/, https://discourse.mc-stan.org
2525
BugReports: https://github.com/stan-dev/cmdstanr/issues
@@ -38,7 +38,7 @@ Imports:
3838
processx (>= 3.5.0),
3939
R6 (>= 2.4.0),
4040
withr (>= 2.5.0)
41-
Suggests:
41+
Suggests:
4242
bayesplot,
4343
knitr (>= 1.37),
4444
loo (>= 2.0.0),

LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
BSD 3-Clause License
22
=====================
33

4-
Copyright (c) 2019, Stan Developers and their Assignees
4+
Copyright (c) 2019, Stan Developers and their Assignees
55
All rights reserved.
66

77
Redistribution and use in source and binary forms, with or without

NEWS.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
### Bug fixes
44

5-
* In `cmdstan_default_path()` we now ignore directories inside `.cmdstan` that don't start
5+
* In `cmdstan_default_path()` we now ignore directories inside `.cmdstan` that don't start
66
with `"cmdstan-"`. (#651)
77

88
* Fixed Windows issue related to not locating `grep.exe` or when it is located in a path
99
with spaces. (@weshinsley, #661, #663)
1010

1111
* Fixed a bug with diagnostic checks when ebfmi is NaN.
1212

13-
* Fixed a bug that caused issues when using `~` or `.` in paths supplied to the
13+
* Fixed a bug that caused issues when using `~` or `.` in paths supplied to the
1414
`cmdstanr_write_stan_file_dir` global option.
1515

1616
# cmdstanr 0.5.2
@@ -19,7 +19,7 @@ with spaces. (@weshinsley, #661, #663)
1919
for Rtools42. (#645)
2020

2121
* Expanded the use of `CMDSTAN` environment variable to point to CmdStan installation
22-
_or_ directory containing CmdStan installations. (#643)
22+
_or_ directory containing CmdStan installations. (#643)
2323

2424
* New vignette on how to handle deprecations using the `$format()` method. (#644)
2525

R/model.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ compile <- function(quiet = TRUE,
581581
)
582582
}
583583
if (os_is_macos()) {
584-
if (R.version$arch == "aarch64"
584+
if (R.version$arch == "aarch64"
585585
&& grepl("but the current translation unit is being compiled for target", x)) {
586586
warning(
587587
"The C++ compiler has errored due to incompatibility between the x86 and ",

README.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![Codecov test coverage](https://codecov.io/gh/stan-dev/cmdstanr/branch/master/graph/badge.svg)](https://app.codecov.io/gh/stan-dev/cmdstanr?branch=master)
77
<!-- badges: end -->
88

9-
### Overview
9+
### Overview
1010

1111
CmdStanR is a lightweight interface to [Stan](https://mc-stan.org) for R users
1212
(see [CmdStanPy](https://github.com/stan-dev/cmdstanpy) for Python).
@@ -23,7 +23,7 @@ If you are new to CmdStanR we recommend starting with these vignettes:
2323
releases.
2424

2525
* R code that doesn't interface directly with C++, only calls compiled executables.
26-
26+
2727
* Modularity: CmdStanR runs Stan's algorithms and lets downstream modules do the
2828
analysis.
2929

@@ -34,7 +34,7 @@ analysis.
3434

3535
#### Installing the R package
3636

37-
You can install the latest beta release of the **cmdstanr** R package with
37+
You can install the latest beta release of the **cmdstanr** R package with
3838

3939
```r
4040
# we recommend running this is a fresh R session or restarting your current session
@@ -53,22 +53,22 @@ remotes::install_github("stan-dev/cmdstanr")
5353
#### Installing CmdStan
5454

5555
If you don't already have CmdStan installed then, in addition to installing the
56-
R package, it is also necessary to install CmdStan using CmdStanR's
57-
`install_cmdstan()` function. A suitable C++ toolchain is also required.
56+
R package, it is also necessary to install CmdStan using CmdStanR's
57+
`install_cmdstan()` function. A suitable C++ toolchain is also required.
5858
Instructions are provided in the [_Getting started with
59-
CmdStanR_](https://mc-stan.org/cmdstanr/articles/cmdstanr.html) vignette.
59+
CmdStanR_](https://mc-stan.org/cmdstanr/articles/cmdstanr.html) vignette.
6060

6161

62-
### Contributing
62+
### Contributing
6363

64-
There is a lot of work still to be done and contributions are very welcome!
64+
There is a lot of work still to be done and contributions are very welcome!
6565
If you are interested in contributing please comment on an open issue
66-
or open a new one if none are applicable.
66+
or open a new one if none are applicable.
6767

6868
### License
6969

70-
CmdStanR, like CmdStan and the core Stan C++ code, is licensed under the
71-
following licenses:
70+
CmdStanR, like CmdStan and the core Stan C++ code, is licensed under the
71+
following licenses:
7272

7373
- Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
7474
- Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

tests/testthat/resources/data/logistic.data.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
N <- 100
22
K <- 3
3-
y <-
3+
y <-
44
c(1, 0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0,
55
0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0,
66
1, 1, 0, 1, 1, 1, 1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 0, 1, 1,
77
0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1)
8-
X <-
8+
X <-
99
structure(c(-0.326036490515386, 0.552461855419139, -0.67494384395583,
1010
0.214359459043425, 0.310769217313602, 1.1739662875627, 0.618789855625968,
1111
-0.112734314754215, 0.917028289512712, -0.223259364627263, 0.526448098873642,
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
inv_metric <-
1+
inv_metric <-
22
structure(c(1),
33
.Dim = c(1, 1))

tests/testthat/test-model-compile.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ test_that("cmdstan_model errors with no args ", {
581581
})
582582

583583
test_that("cmdstan_model works with user_header", {
584-
skip_if(os_is_macos() | os_is_windows())
584+
skip_if(os_is_macos() | os_is_windows())
585585
tmpfile <- tempfile(fileext = ".hpp")
586586
hpp <-
587587
"

vignettes/children/comparison-with-rstan.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ but currently they are only available to R users via RStan:
1414
- `rstan::log_prob()`
1515
- `rstan::grad_log_prob()`
1616
- `rstan::expose_stan_functions()`
17-
17+
1818
* Allows other developers to distribute R packages with
1919
_pre-compiled_ Stan programs (like **rstanarm**) on CRAN.
2020

@@ -26,12 +26,12 @@ package and new CRAN releases of both **rstan** and **StanHeaders**. With
2626
CmdStanR the latest improvements in Stan will be available from R immediately
2727
after updating CmdStan using `cmdstanr::install_cmdstan()`.
2828

29-
* Fewer installation issues (e.g., no need to mess with Makevars files).
29+
* Fewer installation issues (e.g., no need to mess with Makevars files).
3030

3131
* Running Stan via external processes results in fewer unexpected crashes,
3232
especially in RStudio.
3333

34-
* Less memory overhead.
34+
* Less memory overhead.
3535

3636
* More permissive license. RStan uses the GPL-3 license while the license for
3737
CmdStanR is BSD-3, which is a bit more permissive and is the same license used

0 commit comments

Comments
 (0)