Skip to content

Commit 545d43f

Browse files
committed
get rid of read_rforge()
1 parent 91eafea commit 545d43f

File tree

5 files changed

+3
-54
lines changed

5 files changed

+3
-54
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: knitr
22
Type: Package
33
Title: A General-Purpose Package for Dynamic Report Generation in R
4-
Version: 1.49.6
4+
Version: 1.49.7
55
Authors@R: c(
66
person("Yihui", "Xie", role = c("aut", "cre"), email = "xie@yihui.name", comment = c(ORCID = "0000-0003-0645-5666", URL = "https://yihui.org")),
77
person("Abhraneel", "Sarma", role = "ctb"),

NAMESPACE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ export(raw_latex)
124124
export(raw_output)
125125
export(read_chunk)
126126
export(read_demo)
127-
export(read_rforge)
128127
export(render_asciidoc)
129128
export(render_html)
130129
export(render_jekyll)

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
- A warning will be issued when chunk options are duplicated in both the chunk header and pipe comments (thanks, @cderv, #2386). A chunk option should appear in only one of these places.
1212

13+
- Removed the function `read_rforge()` since it has stopped working for a long time.
14+
1315
# CHANGES IN knitr VERSION 1.49
1416

1517
## NEW FEATURES

R/utils.R

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -688,26 +688,6 @@ escape_latex = function(x, newlines = FALSE, spaces = FALSE) {
688688
# TODO: remove this after https://github.com/mgondan/mathml/pull/18
689689
escape_html = xfun::html_escape
690690

691-
#' Read source code from R-Forge
692-
#'
693-
#' This function reads source code from the SVN repositories on R-Forge.
694-
#' @param path Relative path to the source script on R-Forge.
695-
#' @param project Name of the R-Forge project.
696-
#' @param extra Extra parameters to be passed to the URL (e.g. \code{extra =
697-
#' '&revision=48'} to check out the source of revision 48).
698-
#' @return A character vector of the source code.
699-
#' @author Yihui Xie and Peter Ruckdeschel
700-
#' @export
701-
#' @examplesIf interactive()
702-
#' library(knitr)
703-
#' # relies on r-forge.r-project.org being accessible
704-
#' read_rforge('rgl/R/axes.R', project = 'rgl')
705-
#' read_rforge('rgl/R/axes.R', project = 'rgl', extra='&revision=519')
706-
read_rforge = function(path, project, extra = '') {
707-
base = 'http://r-forge.r-project.org/scm/viewvc.php/*checkout*/pkg'
708-
read_utf8(sprintf('%s/%s?root=%s%s', base, path, project, extra))
709-
}
710-
711691
split_lines = function(x) xfun::split_lines(x)
712692

713693
# if a string is encoded in UTF-8, convert it to native encoding

man/read_rforge.Rd

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)