Skip to content
Permalink
Browse files

Guard against file names with tilde during package build.

git-svn-id: https://svn.r-project.org/R/trunk@77749 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
kalibera
kalibera committed Jan 30, 2020
1 parent a968eec commit 1d4f7aa1dac427ea2213d1f7cd7b5c16e896af22
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/library/tools/R/build.R
@@ -1,7 +1,7 @@
# File src/library/tools/R/build.R
# Part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2018 The R Core Team
# Copyright (C) 1995-2020 The R Core Team
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -1046,7 +1046,8 @@ inRbuildignore <- function(files, pkgdir) {
exclude <- exclude | grepl("^.Rbuildindex[.]", allfiles)
## or simply? exclude <- exclude | startsWith(allfiles, ".Rbuildindex.")
exclude <- exclude | (bases %in% .hidden_file_exclusions)
unlink(allfiles[exclude], recursive = TRUE, force = TRUE)
unlink(allfiles[exclude], recursive = TRUE, force = TRUE,
expand = FALSE)
setwd(owd)

## Fix up man, R, demo inst/doc directories

0 comments on commit 1d4f7aa

Please sign in to comment.
You can’t perform that action at this time.