Skip to content

Commit 1740589

Browse files
Explicit target blank for all external links
Batch regex replacement of (\[[^\]]+\]\(http[^)]+\)) with $1{target="_blank"}
1 parent c1b6a20 commit 1740589

6 files changed

+42
-42
lines changed

index.Rmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ output:
2727
printf "Last modified: %s" "$(git log -1 --format=%cd index.Rmd | sed 's/^[^ ]* //;s/ [^ ]*$//')"
2828
```
2929

30-
[**Mirai Solutions**](https://mirai-solutions.ch/) is a Zurich-based software development and consultancy firm, delivering cutting-edge technology and best practices to the industry, helping companies elevate their data analytics and operations.
30+
[**Mirai Solutions**](https://mirai-solutions.ch/){target="_blank"} is a Zurich-based software development and consultancy firm, delivering cutting-edge technology and best practices to the industry, helping companies elevate their data analytics and operations.
3131

3232
We are an interdisciplinary team of data scientists, software engineers, business consultants and IT architects with specialist knowledge ranging from finance and risk management to math/stats techniques to software development and project management.
3333

@@ -45,4 +45,4 @@ In this e-book, we share technical guidelines, how-tos and best practices around
4545

4646
![Python Logo](python-logo-only.png)
4747

48-
If instead you are more interested in **Python**, you can access our free Python training material [**here**](https://mirai-solutions.ch/py-techguides).
48+
If instead you are more interested in **Python**, you can access our free Python training material [**here**](https://mirai-solutions.ch/py-techguides){target="_blank"}.

renv.Rmd

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ cat(knitr::current_input(), file="tg-temp.txt")
1515
unlink("tg-temp.txt")
1616
```
1717

18-
For production readiness --- and project safety --- it is important to control the dependencies of a piece of development. This can be done at project level using the package [`renv`](https://rstudio.github.io/renv/).
18+
For production readiness --- and project safety --- it is important to control the dependencies of a piece of development. This can be done at project level using the package [`renv`](https://rstudio.github.io/renv/){target="_blank"}.
1919

2020
In an `renv` project, dependencies are resolved and tracked in a lock-file. As a new R session starts, `renv` detects whether installed dependencies are out of sync compared to the lock-file, ensuring the same virtual environment applies each time the project is opened.
2121

@@ -33,7 +33,7 @@ install.packages("renv")
3333

3434
## Set-up an `renv` project
3535

36-
In order resolve and track dependencies of a project, `renv` needs to discover what the required packages are. Although `renv` supports discovering dependencies by scanning all files in the project (_implicit mode_), we strongly advise to define the required dependencies in a `DESCRIPTION` file, and rely on `renv`'s _explicit mode_ (see ['Snapshot types'](https://rstudio.github.io/renv/reference/snapshot.html#snapshot-types) in the documentation for details).
36+
In order resolve and track dependencies of a project, `renv` needs to discover what the required packages are. Although `renv` supports discovering dependencies by scanning all files in the project (_implicit mode_), we strongly advise to define the required dependencies in a `DESCRIPTION` file, and rely on `renv`'s _explicit mode_ (see ['Snapshot types'](https://rstudio.github.io/renv/reference/snapshot.html#snapshot-types){target="_blank"} in the documentation for details).
3737

3838
To initialize `renv` for a project where dependencies are explicitly stated in the `DESCRIPTION` file, run:
3939

@@ -99,7 +99,7 @@ If the `DESCRIPTION` file does not request a specific package version, `renv` wi
9999
options(repos = "https://packagemanager.posit.co/cran/2024-01-02")
100100
```
101101

102-
Date-based CRAN snapshots have built-in support in `renv` with [`renv::checkout()`](https://rstudio.github.io/renv/reference/checkout.html), w/o the need for `(options(repos = ...))`:
102+
Date-based CRAN snapshots have built-in support in `renv` with [`renv::checkout()`](https://rstudio.github.io/renv/reference/checkout.html){target="_blank"}, w/o the need for `(options(repos = ...))`:
103103

104104
```{r , echo = TRUE, eval = FALSE}
105105
# check out packages from PPM using the date '2023-01-02'

roxygen-guidelines.Rmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This is based on:
2727
- **roxygen2** vignettes: `browseVignettes("roxygen2")`, in particular
2828
[Generating Rd
2929
files](https://cran.r-project.org/web/packages/roxygen2/vignettes/rd.html).
30-
- The [tidyverse style guide](https://style.tidyverse.org/documentation.html).
30+
- The [tidyverse style guide](https://style.tidyverse.org/documentation.html){target="_blank"}.
3131
- Package development experience.
3232

3333
Examples are provided to show the concrete application of the described
@@ -100,7 +100,7 @@ bottom and in this order.
100100
- For **un-exported** objects documented for internal purposes, specify
101101
`@keywords internal` instead of `@export`.
102102
- Use
103-
[**markdown**](https://cran.r-project.org/web/packages/roxygen2/vignettes/rd-formatting.html):
103+
[**markdown**](https://cran.r-project.org/web/packages/roxygen2/vignettes/rd-formatting.html){target="_blank"}:
104104
If not done at package level, `@md` should be the last element (so it can easily
105105
be removed when moving to package-level).
106106
- Do not use `@rdname` if not documenting multiple objects (see below).

0 commit comments

Comments
 (0)