Skip to content

Commit

Permalink
resolve 301 redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Sep 22, 2020
1 parent 35a562c commit 6c43887
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 16 deletions.
2 changes: 1 addition & 1 deletion R/hooks-latex.R
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ hook_plot_tex = function(x, options) {
#'
#' Jekyll and Liquid:
#' \url{https://github.com/jekyll/jekyll/wiki/Liquid-Extensions}; prettify.js:
#' \url{http://code.google.com/p/google-code-prettify/}
#' \url{https://code.google.com/archive/p/google-code-prettify}
#' @examples
#' # below is pretty much what knitr::render_markdown() does:
#' knitr::knit_hooks$set(knitr::hooks_markdown())
Expand Down
4 changes: 3 additions & 1 deletion R/output.R
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@
#' you want to reproduce the computation in a report generated by
#' \code{knit()}, be sure to use \code{knit()}, instead of merely executing
#' the R script generated by \code{purl()}. This seems to be obvious, but some
#' people \href{http://bit.ly/SnLi6h}{just do not get it}.
#' people
#' \href{https://r.789695.n4.nabble.com/R-CMD-check-for-the-R-code-from-vignettes-td4691457.html}{just
#' do not get it}.
#' @export
#' @references Package homepage: \url{https://yihui.org/knitr/}. The \pkg{knitr}
#' \href{https://yihui.org/knitr/demo/manual/}{main manual}: and
Expand Down
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,7 @@ make_unique = function(x) {
#' @return The data URI as a character string.
#' @author Wush Wu and Yihui Xie
#' @export
#' @references \url{http://en.wikipedia.org/wiki/Data_URI_scheme}
#' @references \url{https://en.wikipedia.org/wiki/Data_URI_scheme}
#' @examples uri = image_uri(file.path(R.home('doc'), 'html', 'logo.jpg'))
#' if (interactive()) {cat(sprintf('<img src="%s" />', uri), file = 'logo.html')
#' browseURL('logo.html') # you can check its HTML source
Expand Down
6 changes: 3 additions & 3 deletions README-ES.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Mientras Sweave y paquetes adicionales relacionados como [**cacheSweave**](https
- deseé que [**R2HTML**](https://cran.r-project.org/package=R2HTML) soportase el resaltado de sintaxis de código R
- ...

[<img src="http://i.imgur.com/yYw46aF.jpg" align="right" alt="The book Dynamic Documents with R and knitr" />](http://amzn.com/1498716962)
[<img src="http://i.imgur.com/yYw46aF.jpg" align="right" alt="The book Dynamic Documents with R and knitr" />](https://www.amazon.com/dp/1498716962/)

El paquete **knitr** se diseñó para dar al usuario acceso a todas las partes del proceso de lidiar con un documento de programación literaria, de forma que no haya necesidad de modificar cualquiera de los componentes centrales si quiere mayor libertad. He estudiado el código fuente de **pgfSweave** y **cacheSweave** un par de veces, y frecuentemente me siento incómodo con la gran cantidad de código copiado del R oficial, especialmente cuando R tiene una nueva versión liberada (empezaré a preocuparme si los paquetes adicionales todavía están actualizados respecto al Sweave ocifial).

Expand All @@ -63,9 +63,9 @@ reasonable default settings. A few manuals are available such as the [main
manual](https://yihui.org/knitr/demo/manual/), and the
[graphics
manual](https://yihui.org/knitr/demo/graphics/). For a
more organized reference, see the [knitr book](http://amzn.com/1498716962).
more organized reference, see the [knitr book](https://www.amazon.com/dp/1498716962/).

Si no se especifican opciones explícitamente, **knitr** tratará de suponer una configuración por defecto razonable. Hay disponibles unos pocos manuales, tales como el [manual principal](https://yihui.org/knitr/demo/manual/) y el [manual de gráficos](https://yihui.org/knitr/demo/graphics/). Para una referencia más organizada, vea el libro de [knitr](http://amzn.com/1498716962).
Si no se especifican opciones explícitamente, **knitr** tratará de suponer una configuración por defecto razonable. Hay disponibles unos pocos manuales, tales como el [manual principal](https://yihui.org/knitr/demo/manual/) y el [manual de gráficos](https://yihui.org/knitr/demo/graphics/). Para una referencia más organizada, vea el libro de [knitr](https://www.amazon.com/dp/1498716962/).


## Licencia
Expand Down
4 changes: 2 additions & 2 deletions README-PT.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ minhas mãos estão atadas, por exemplo:
- ...


[<img src="http://i.imgur.com/yYw46aF.jpg" align="right" alt="Livro Dynamic Documents with R and knitr" />](https://amzn.com/1498716962)
[<img src="http://i.imgur.com/yYw46aF.jpg" align="right" alt="Livro Dynamic Documents with R and knitr" />](https://www.amazon.com/dp/1498716962/)

O pacote **knitr** foi desenhado para dar ao usuário acesso à todas as partes do processo de lidar com um documento de programação literata, então não há
necessidade de hackear nenhum componente do núcleo se você quiser mais liberdade.
Expand All @@ -85,7 +85,7 @@ knit(input)
Se as opções não forem explicitadas, **knitr** vai tentar adivinhar
configurações-padrão razoáveis. Alguns manuais estão disponíveis, como o
[manual principal](https://yihui.org/knitr/demo/manual/), e o [manual de gráficos](https://yihui.org/knitr/demo/graphics/). Para uma referência
organizada, ver o [livro do knitr](https://amzn.com/1498716962).
organizada, ver o [livro do knitr](https://www.amazon.com/dp/1498716962/).

## Licença

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ For example:
- ...


[<img src="http://i.imgur.com/yYw46aF.jpg" align="right" alt="The book Dynamic Documents with R and knitr" />](https://amzn.com/1498716962)
[<img src="http://i.imgur.com/yYw46aF.jpg" align="right" alt="The book Dynamic Documents with R and knitr" />](https://www.amazon.com/dp/1498716962/)

The package **knitr** was designed to give the user access to every part of
the process of dealing with a literate programming document, so there is no
Expand All @@ -93,7 +93,7 @@ reasonable default settings. A few manuals are available such as the [main
manual](https://yihui.org/knitr/demo/manual/), and the
[graphics
manual](https://yihui.org/knitr/demo/graphics/). For a
more organized reference, see the [knitr book](https://amzn.com/1498716962).
more organized reference, see the [knitr book](https://www.amazon.com/dp/1498716962/).

## License

Expand Down
2 changes: 1 addition & 1 deletion man/image_uri.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion man/knit.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/output_hooks.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vignettes/datatables.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# jQuery DataTables

We can use the JavaScript library [**DataTables**](http://www.datatables.net) to generate enhanced tables in HTML. In the example below, we create a table for the `mtcars` data:
We can use the JavaScript library [**DataTables**](https://www.datatables.net) to generate enhanced tables in HTML. In the example below, we create a table for the `mtcars` data:

```{r cool, results='asis'}
library(knitr)
Expand Down
2 changes: 1 addition & 1 deletion vignettes/docco-linear.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# R Markdown with the Docco Linear Style

This is an example of Markdown vignettes using the [Docco style](http://jashkenas.github.io/docco/).
This is an example of Markdown vignettes using the [Docco style](http://ashkenas.com/docco/).

## Docco

Expand Down
2 changes: 1 addition & 1 deletion vignettes/knit_expand.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ res = knit_expand(text = c(' x | x^2', '{{x=1:5;paste(sprintf("%2d | %3d", x, x^
cat(res)
```

The m4 example: <http://en.wikipedia.org/wiki/M4_(computer_language)>
The m4 example: <https://en.wikipedia.org/wiki/M4_(computer_language)>

```{r}
res = knit_expand(text = c('{{i=0;h2=function(x){i<<-i+1;sprintf("<h2>%d. %s</h2>", i, x)} }}<html>',
Expand Down

0 comments on commit 6c43887

Please sign in to comment.