Skip to content

Commit fda012c

Browse files
author
hornik
committed
aspell_R_vignettes() gains a 'dir' argument.
git-svn-id: https://svn.r-project.org/R/trunk@89015 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent e154cb1 commit fda012c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/library/utils/R/aspell.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -668,10 +668,11 @@ aspell_control_R_vignettes <-
668668
c("-t", "-d en_US,en_GB"))
669669

670670
aspell_R_vignettes <-
671-
function(program = NULL,
671+
function(program = NULL, dir = NULL,
672672
dictionaries = c(aspell_dictionaries_R, "R_vignettes"))
673673
{
674-
files <- Sys.glob(file.path(tools:::.R_top_srcdir_from_Rd(),
674+
if(is.null(dir)) dir <- tools:::.R_top_srcdir_from_Rd()
675+
files <- Sys.glob(file.path(dir,
675676
"src", "library", "*", "vignettes",
676677
"*.Rnw"))
677678

0 commit comments

Comments
 (0)