~enricoschumann/esutils

957bb99e280db199c9f648730d3ea67aa01a0618 — Enrico Schumann 2 years ago abb9f41 v0.3.0
Prepare version 0.3.0

See ChangeLog and NEWS.
5 files changed, 41 insertions(+), 15 deletions(-)

M ChangeLog
M DESCRIPTION
M NEWS
M R/repos.R
M man/repositories.Rd
M ChangeLog => ChangeLog +10 -2
@@ 1,10 1,18 @@
2022-09-03  Enrico Schumann  <es@enricoschumann.net>

        * DESCRIPTION (Version): 0.3.0
        [and use only "." in versions]

        * R/repos.R (fetch_git_info): rename argument
        "paths" to "path"

2022-08-31  Enrico Schumann  <es@enricoschumann.net>

	* R/functions.R (insert): recycle "what"
        * R/functions.R (insert): recycle "what"

2022-08-26  Enrico Schumann  <es@enricoschumann.net>

        * R/repos.R (find_git): add argument 'nchar', to
        * R/repos.R (find_git): add argument 'max.char', to
        exclude too-long path names on Windows

2022-08-24  Enrico Schumann  <es@enricoschumann.net>

M DESCRIPTION => DESCRIPTION +2 -2
@@ 1,8 1,8 @@
Package: esutils
Type: Package
Title: esutils
Version: 0.3-0
Date: 2022-08-31
Version: 0.3.0
Date: 2022-09-03
Maintainer: Enrico Schumann <es@enricoschumann.net>
Authors@R: person(given = "Enrico", family = "Schumann",
                  role  = c("aut", "cre"),

M NEWS => NEWS +8 -3
@@ 1,14 1,19 @@
v0.3-0  (2022-08-24; not yet released)
v0.3-0  (2022-09-03)

  o pkg_build: new argument "as.cran"

  o add function "backup_filename"

  o add function "path8.3"
  

  o clean_ltx: remove *lol files

  o ....
  o insert: recycle argument "what"

  o for consistency, the first argument of function
    "fetch_git_info" is now called path

  o various other fixes; see ChangeLog

v0.2-0  (2021-03-19)


M R/repos.R => R/repos.R +2 -1
@@ 17,8 17,9 @@ find_git <- function(path = ".", tilde = TRUE, max.char = NA,...) {
    f
}

fetch_git_info <- function(paths, ...) {
fetch_git_info <- function(path, ...) {

    paths <- path
    clean <- rep(NA, length(paths))
    remotes <- rep(NA_character_, length(paths))
    remote_urls <- rep(NA_character_, length(paths))

M man/repositories.Rd => man/repositories.Rd +19 -7
@@ 8,28 8,40 @@
  Helper functions for managing local git repositories.
}
\usage{
find_git(path = ".", tilde = TRUE, ...)
fetch_git_info(paths, ...)
find_git(path = ".", tilde = TRUE, max.char, ...)
fetch_git_info(path, ...)
}
\arguments{
  \item{path}{
    character
  }
  \item{tilde}{
    logical: do tilde expansion through \code{\link{path.expand}}?
  }
  \item{max.char}{\code{\link{NA}} or integer: if the latter,
    filepaths longer than
    \code{max.char} are excluded. (Necessary for operating
    systems that impose maximum path lengths.)

  }
  \item{\dots}{
    other arguments
  }
}
\details{

  To be added
  
  Find git repositories, i.e. directories with name \code{.git}.

}
\value{
  character vector
  data.frame
  a character vector for \code{find_git},
  a \code{\link{data.frame}} for \code{fetch_git_info}
}
\author{
  Enrico Schumann
}
\seealso{
  the git2r package
  the \pkg{git2r} package
}
\examples{
\donttest{