diff --git a/.Rbuildignore b/.Rbuildignore index ded27b546ba12d0177d232e76fa50da13895d904..de5a9b5e3c1e4efded4588e4b7f0a8c487776901 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -1,3 +1,5 @@ benchmark ^.*\.Rproj$ ^\.Rproj\.user$ +^\.git/*$ +^\.gitignore$ diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..e27ba9e003385ddd70fca7dac0263bfb338a9b70 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +.Rproj.user +.Rhistory +.RData +.DS_Store +*.o +*.so \ No newline at end of file diff --git a/DESCRIPTION b/DESCRIPTION index 79050246101ea18b5c19b522b3b24b84ff7372eb..436dc98c5791956dd77fe317910406b0d6815707 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -2,7 +2,7 @@ Package: dotCall64 Type: Package Title: Enhanced Foreign Function Interface Supporting Long Vectors Version: 0.9-04 -Date: 2016-09-30 +Date: 2016-10-03 Authors@R: c(person("Kaspar", "Moesinger", role = c("aut", "cre"), email = "kaspar.moesinger@gmail.com"), person("Florian", "Gerber", role = "ctb", @@ -14,6 +14,8 @@ Maintainer: Kaspar Moesinger <kaspar.moesinger@gmail.com> Description: An alternative version of .C() and .Fortran() supporting long vectors and 64-bit integer type arguments. The provided interface .C64() features mechanisms the avoid unnecessary copies of read-only or write-only arguments. This makes it a convenient and fast interface to C/C++ and Fortran code. License: GPL (>= 2) +URL: https://git.math.uzh.ch/reinhard.furrer/dotCall64 +BugReports: https://git.math.uzh.ch/reinhard.furrer/dotCall64/issues Depends: R (>= 3.1) Suggests: microbenchmark, diff --git a/R/dotCall64.R b/R/dotCall64.R index 2ce360cb5aa07e111797c43604fef8e393820d51..7c054d466c86f0899e4cfbf9c047aa0f127af9fa 100644 --- a/R/dotCall64.R +++ b/R/dotCall64.R @@ -4,7 +4,7 @@ #' It works similar to \code{\link{.C}} and \code{\link{.Fortran}}, and #' \enumerate{ #' \item supports long vectors, i.e., vectors with more than \code{2^31-1} elements, -#' \item does the necessary castings to expose the R represantation of "64-bit integers" (numeric vectors) +#' \item does the necessary castings to expose the R representation of "64-bit integers" (numeric vectors) #' to 64-bit integers arguments of the compiled function; int64_t types in C and integer (kind = 8) in Fortran, #' \item provides a mechanism the control the duplication of the R objects exposed to the compiled code, #' \item checks if the provided R objects are of the expected type and coerces the R object if necessary. @@ -32,7 +32,7 @@ #' When the intent is \code{"w"}, the corresponding input argument can be specified #' with the function \code{\link{vector_dc}} or its shortcuts \code{\link{integer_dc}} and \code{\link{numeric_dc}}. #' This avoids copying the passed R objects and hence is more efficient in terms of speed and memory usage. -#' By default all arguments have intent \code{"rw"}. +#' By default, all arguments have intent \code{"rw"}. #' @param NAOK logical vector of length 1. If \code{FALSE} (default), the presence of \code{NA} or \code{NaN} or \code{Inf} #' in the R objects passed through \code{...} results in an error. #' If \code{TRUE}, any \code{NA} or \code{NaN} or \code{Inf} values in the diff --git a/README.md b/README.md deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/man/dotCall64.Rd b/man/dotCall64.Rd index e02dbb87f5b5e5e4a99e2a4e3b2c292c59229ba3..5e337b916015193469728e6f2d577515fd17751b 100644 --- a/man/dotCall64.Rd +++ b/man/dotCall64.Rd @@ -30,7 +30,7 @@ since this corrupts the R object in the current R session. When the intent is \code{"w"}, the corresponding input argument can be specified with the function \code{\link{vector_dc}} or its shortcuts \code{\link{integer_dc}} and \code{\link{numeric_dc}}. This avoids copying the passed R objects and hence is more efficient in terms of speed and memory usage. -By default all arguments have intent \code{"rw"}.} +By default, all arguments have intent \code{"rw"}.} \item{NAOK}{logical vector of length 1. If \code{FALSE} (default), the presence of \code{NA} or \code{NaN} or \code{Inf} in the R objects passed through \code{...} results in an error. @@ -58,7 +58,7 @@ by the compiled C or Fortran code. It works similar to \code{\link{.C}} and \code{\link{.Fortran}}, and \enumerate{ \item supports long vectors, i.e., vectors with more than \code{2^31-1} elements, - \item does the necessary castings to expose the R represantation of "64-bit integers" (numeric vectors) + \item does the necessary castings to expose the R representation of "64-bit integers" (numeric vectors) to 64-bit integers arguments of the compiled function; int64_t types in C and integer (kind = 8) in Fortran, \item provides a mechanism the control the duplication of the R objects exposed to the compiled code, \item checks if the provided R objects are of the expected type and coerces the R object if necessary.