Skip to content

Commit 1e3e63e

Browse files
authored
Merge pull request #631 from stan-dev/fix/dead-links
Fix dead links
2 parents d024270 + 9d8342c commit 1e3e63e

8 files changed

Lines changed: 21 additions & 22 deletions

File tree

src/cmdstan-guide/installation.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ percentiles, effective number of samples, and $\hat{R}$ values.
152152
that the HMC sampler was unable to sample from the full posterior.
153153

154154
CmdStan releases include pre-built binaries of the Stan language
155-
compiler \url {https://github.com/stan-dev/stanc3}:
155+
compiler (https://github.com/stan-dev/stanc3):
156156
`bin/linux-stanc`, `bin/mac-stanc` and
157157
`bin/windows-stanc`. The CmdStan makefile `build` task
158158
copies the appropriate binary to `bin/stanc`. For CmdStan

src/cmdstan-guide/json_apdx.Rmd

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ parameters are used to initialize the sampler and optimizer.
99

1010
You can create the JSON file yourself using the guidelines below, but a more
1111
convenient way to create a JSON file for use with CmdStan is to use the
12-
[`write_stan_json()`](https://mc-stan.org/cmdstanr/reference/write_stan_json)
12+
[`write_stan_json()`](https://mc-stan.org/cmdstanr/reference/write_stan_json)
1313
function provided by the CmdStanR interface.
1414

1515

1616
## JSON syntax summary
1717

1818
JSON is a data interchange notation, defined by an
19-
\href{http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf}{ECMA
20-
standard}. JSON data files must in Unicode. JSON data is a series of
19+
[EMCA standard](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).
20+
JSON data files must in Unicode. JSON data is a series of
2121
structural tokens, literal tokens, and values:
2222

2323
- Structural tokens are the left and right curly bracket `{}`, left and right
@@ -44,10 +44,10 @@ There is no distincition between integer and real numbers
4444
in the JSON format other than whether they have periods or scientific
4545
notation.
4646

47-
- The special floating point values for positive infinity, negative infinity,
47+
- The special floating point values for positive infinity, negative infinity,
4848
and not-a-number can be represented in multiple ways. Positive infinity can be
4949
represented as the string `"Inf"`, the string `"Infinity"`, or the atom `Infinity`.
50-
Negative infinity can be represented as the string `"-Inf"`, the string `"-Infinity"`,
50+
Negative infinity can be represented as the string `"-Inf"`, the string `"-Infinity"`,
5151
or the atom `-Infinity`. Not-a-number can be represented as the string `"NaN"`
5252
or the atom `NaN`. These values may be mixed with other numerical types.
5353

@@ -82,15 +82,15 @@ example, the $2 \times 3$ matrix
8282
is represented in JSON as
8383
`[[1, 2.7, -9.8],
8484
[4.2, 1.8, -7.3]]`.
85-
85+
8686
- Complex matrices are also represented as arrays of their row
87-
vectors. For example, the $2 \times 3$ complex matrix
87+
vectors. For example, the $2 \times 3$ complex matrix
8888
\[
8989
\begin{bmatrix}
9090
1 + 2i & 3 - 4.2i & 13.1 + 2.7i \\
9191
3.1 & -5i & 0
9292
\end{bmatrix}
93-
\]
93+
\]
9494
would be represented in JSON as
9595
`
9696
[[[1, 2], [3, -4.2], [13.1, 2.7]],

src/cmdstan-guide/log_prob_config.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ This method takes 3 arguments:
2020

2121
- `constrained_params` - Input file of parameters values on the constrained scale.
2222
A single set of constrained parameters can be specified using
23-
[JSON](json_apdx.html) or [Rdump](rdump_apdx.html) format.
24-
Alternatively, the input file can be set of draws in [StanCSV](stan_csv_apdx.html) format.
23+
[JSON](json.html) or [Rdump](rdump.html) format.
24+
Alternatively, the input file can be set of draws in [StanCSV](stan_csv.html) format.
2525

2626

2727
- `unconstrained_params` - Input file (JSON or R dump) of parameter values

src/reference-manual/licenses.Rmd

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ run Stan.
1717

1818
Stan is distributed under
1919

20-
* [BSD 3-clause license (BSD New)](http://www.opensource.org/licenses/BSD-3-Clause)}
20+
* [BSD 3-clause license (BSD New)](http://www.opensource.org/licenses/BSD-3-Clause)
2121

2222
The copyright holder of each contribution is the developer or his or
2323
her assignee.^[Universities or companies often own the copyright of computer programs developed by their employees.]
@@ -30,7 +30,7 @@ programs, the parser, and various numerical libraries for special
3030
functions, probability functions, and random number generators. Boost
3131
is distributed under the
3232

33-
* [Boost Software License version 1.0](http://www.opensource.org/licenses/BSL-1.0)
33+
* [Boost Software License version 1.0](https://opensource.org/license/bsl1-0-html/)
3434

3535
The copyright for each Boost package is held by its developers or
3636
their assignees.
@@ -39,7 +39,7 @@ their assignees.
3939
## Eigen license
4040

4141
Stan uses the Eigen library for matrix arithmetic and linear algebra.
42-
Eigen is distributed under the
42+
Eigen is distributed under the
4343

4444
* [Mozilla Public License, version 2](http://opensource.org/licenses/mpl-2.0)
4545

@@ -52,7 +52,7 @@ assignees.
5252
Stan uses the SUNDIALS package for solving differential equations.
5353
SUNDIALS is distributed under the
5454

55-
* [BSD 3-clause license (BSD New)](http://www.opensource.org/licenses/BSD-3-Clause)}
55+
* [BSD 3-clause license (BSD New)](http://www.opensource.org/licenses/BSD-3-Clause)
5656

5757
The copyright of SUNDIALS is owned by Lawrence Livermore National
5858
Security Lab.
@@ -63,7 +63,6 @@ Security Lab.
6363
Stan uses Google Test for unit testing; it is not required to compile
6464
or execute models. Google Test is distributed under the
6565

66-
* [BSD 3-clause license (BSD New)](http://www.opensource.org/licenses/BSD-3-Clause)}
66+
* [BSD 3-clause license (BSD New)](http://www.opensource.org/licenses/BSD-3-Clause)
6767

6868
The copyright of Google Test is owned by Google, Inc.
69-

src/reference-manual/types.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ part of their behavior.
4343

4444
Stan provides two primitive data types, `real` for continuous
4545
values and `int` for integer values. These are both considered scalar
46-
types.
46+
types.
4747

4848
### Complex types {-}
4949

@@ -1554,7 +1554,7 @@ specified by using commas, e.g. `array[ , ]` is a 2-D array.
15541554

15551555
For more on how function arguments and return types are declared,
15561556
consult the [User's Guide chapter on
1557-
functions](https://mc-stan.org/docs/stan-users-guide/basic-functions-section.html#type-declarations-for-functions).
1557+
functions](https://mc-stan.org/docs/stan-users-guide/basic-functions.html#type-declarations-for-functions).
15581558

15591559
## Compound variable declaration and definition
15601560

src/stan-users-guide/for-bugs-users.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ model is translated to templated C++ and then to a
1818
platform-specific executable. Stan, unlike BUGS, allows the user
1919
to directly program in C++, but we do not describe how to do this in
2020
this Stan manual (see the getting started with C++ section of
21-
\url{https://mc-stan.org} for more information on using Stan directly
21+
https://mc-stan.org for more information on using Stan directly
2222
from C++).
2323

2424
### BUGS performs MCMC updating one scalar parameter at a time, Stan uses HMC which moves in the entire space of all the parameters at each step {-}

src/stan-users-guide/user-functions.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ back.
700700

701701
#### Truncating below {-}
702702

703-
For example, the following code generates a $\textsf{Weibull}(\alpha, \sigma)$ variate truncated below at a time $t$,^[The original code and impetus for including this in the manual came from the Stan forums post \url{http://discourse.mc-stan.org/t/rng-for-truncated-distributions/3122/7}; by user `lcomm`, who also explained truncation above and below.]
703+
For example, the following code generates a $\textsf{Weibull}(\alpha, \sigma)$ variate truncated below at a time $t$,^[The original code and impetus for including this in the manual came from the [Stan forums post](http://discourse.mc-stan.org/t/rng-for-truncated-distributions/3122/7); by user `lcomm`, who also explained truncation above and below.]
704704

705705
```stan
706706
real weibull_lb_rng(real alpha, real sigma, real t) {

src/stan-users-guide/using-stanc.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ In addition to compiling Stan programs, stanc3 features several [flags](#stanc-a
675675
which can be used to format Stan programs and update them to the most recent
676676
Stan syntax by removing any
677677
[deprecation
678-
features](https://mc-stan.org/docs/reference-manual/deprecated-features-appendix.html)
678+
features](https://mc-stan.org/docs/reference-manual/deprecated-features.html)
679679
which can be automatically replaced.
680680

681681
These flags work for both `.stan` model files and `.stanfunctions` function

0 commit comments

Comments
 (0)