From 6c4388737598d3411abde548bac0107fbf54c790 Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Mon, 21 Sep 2020 20:53:23 -0500 Subject: [PATCH] resolve 301 redirects --- R/hooks-latex.R | 2 +- R/output.R | 4 +++- R/utils.R | 2 +- README-ES.md | 6 +++--- README-PT.md | 4 ++-- README.md | 4 ++-- man/image_uri.Rd | 2 +- man/knit.Rd | 4 +++- man/output_hooks.Rd | 2 +- vignettes/datatables.Rmd | 2 +- vignettes/docco-linear.Rmd | 2 +- vignettes/knit_expand.Rmd | 2 +- 12 files changed, 20 insertions(+), 16 deletions(-) diff --git a/R/hooks-latex.R b/R/hooks-latex.R index 40633ec36c..068e293372 100644 --- a/R/hooks-latex.R +++ b/R/hooks-latex.R @@ -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()) diff --git a/R/output.R b/R/output.R index 4bd9ca877b..543997f5e6 100644 --- a/R/output.R +++ b/R/output.R @@ -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 diff --git a/R/utils.R b/R/utils.R index 44a2221175..4e103aad29 100644 --- a/R/utils.R +++ b/R/utils.R @@ -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('', uri), file = 'logo.html') #' browseURL('logo.html') # you can check its HTML source diff --git a/README-ES.md b/README-ES.md index 5d5e121b85..c13c50d559 100644 --- a/README-ES.md +++ b/README-ES.md @@ -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 - ... -[The book Dynamic Documents with R and knitr](http://amzn.com/1498716962) +[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). @@ -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 diff --git a/README-PT.md b/README-PT.md index d348ef404d..898c787bd4 100644 --- a/README-PT.md +++ b/README-PT.md @@ -64,7 +64,7 @@ minhas mãos estão atadas, por exemplo: - ... -[Livro Dynamic Documents with R and knitr](https://amzn.com/1498716962) +[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. @@ -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 diff --git a/README.md b/README.md index e4315754c8..9975f8b1c2 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ For example: - ... -[The book Dynamic Documents with R and knitr](https://amzn.com/1498716962) +[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 @@ -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 diff --git a/man/image_uri.Rd b/man/image_uri.Rd index 132e273da2..25ec53d4ed 100644 --- a/man/image_uri.Rd +++ b/man/image_uri.Rd @@ -25,7 +25,7 @@ if (interactive()) { } } \references{ -\url{http://en.wikipedia.org/wiki/Data_URI_scheme} +\url{https://en.wikipedia.org/wiki/Data_URI_scheme} } \author{ Wush Wu and Yihui Xie diff --git a/man/knit.Rd b/man/knit.Rd index fd08872d64..9ddfc7ef76 100644 --- a/man/knit.Rd +++ b/man/knit.Rd @@ -143,7 +143,9 @@ The working directory when evaluating R code chunks is the directory of 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}. } \examples{ library(knitr) diff --git a/man/output_hooks.Rd b/man/output_hooks.Rd index 6cc5a841ba..fc87254b5b 100644 --- a/man/output_hooks.Rd +++ b/man/output_hooks.Rd @@ -136,5 +136,5 @@ See output hooks in \url{https://yihui.org/knitr/hooks/}, and 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} } diff --git a/vignettes/datatables.Rmd b/vignettes/datatables.Rmd index d46acba949..22458005ad 100644 --- a/vignettes/datatables.Rmd +++ b/vignettes/datatables.Rmd @@ -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) diff --git a/vignettes/docco-linear.Rmd b/vignettes/docco-linear.Rmd index c9784507ca..8183c04afe 100644 --- a/vignettes/docco-linear.Rmd +++ b/vignettes/docco-linear.Rmd @@ -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 diff --git a/vignettes/knit_expand.Rmd b/vignettes/knit_expand.Rmd index 2f11850ebc..76a4184c17 100644 --- a/vignettes/knit_expand.Rmd +++ b/vignettes/knit_expand.Rmd @@ -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: +The m4 example: ```{r} res = knit_expand(text = c('{{i=0;h2=function(x){i<<-i+1;sprintf("

%d. %s

", i, x)} }}',