Skip to content

Commit

Permalink
added importFrom directives - again...
Browse files Browse the repository at this point in the history
  • Loading branch information
sjewo committed Oct 6, 2015
1 parent ceca4bd commit 49572ac
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,10 @@ export(set.lang)
export(stata_pre13_save)
export(stbcal)
import(Rcpp)
importFrom(stats,complete.cases)
importFrom(stats,na.omit)
importFrom(utils,download.file)
importFrom(utils,localeToCharset)
importFrom(utils,setTxtProgressBar)
importFrom(utils,txtProgressBar)
useDynLib(readstata13)
1 change: 1 addition & 0 deletions R/dbcal.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
#' @author Sebastian Jeworutzki \email{sebastian.jeworutzki@@ruhr-uni-bochum.de}
#' @examples
#' sp500 <- stbcal(system.file("extdata/sp500.stbcal", package="readstata13"))
#' @importFrom stats complete.cases
#' @export
stbcal <- function(stbcalfile) {

Expand Down
2 changes: 2 additions & 0 deletions R/read.R
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@
#' @author Jan Marvin Garbuszus \email{jan.garbuszus@@ruhr-uni-bochum.de}
#' @author Sebastian Jeworutzki \email{sebastian.jeworutzki@@ruhr-uni-bochum.de}
#' @useDynLib readstata13
#' @importFrom utils download.file
#' @importFrom stats na.omit
#' @export
read.dta13 <- function(file, convert.factors = TRUE, generate.factors=FALSE,
encoding = NULL, fromEncoding=NULL,
Expand Down
1 change: 1 addition & 0 deletions R/save.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
#' @author Jan Marvin Garbuszus \email{jan.garbuszus@@ruhr-uni-bochum.de}
#' @author Sebastian Jeworutzki \email{sebastian.jeworutzki@@ruhr-uni-bochum.de}
#' @useDynLib readstata13
#' @importFrom utils localeToCharset
#' @export
save.dta13 <- function(data, file, data.label=NULL, time.stamp=TRUE,
convert.factors=FALSE, convert.dates=TRUE, tz="GMT",
Expand Down
2 changes: 2 additions & 0 deletions R/tools.R
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ get.varlabel <- function(dat, var.name=NULL, lang=NA) {
#' get.varlabel(datDE)
#' @author Jan Marvin Garbuszus \email{jan.garbuszus@@ruhr-uni-bochum.de}
#' @author Sebastian Jeworutzki \email{sebastian.jeworutzki@@ruhr-uni-bochum.de}
#' @importFrom stats na.omit
#' @importFrom utils txtProgressBar setTxtProgressBar
#' @export
set.lang <- function(dat, lang=NA, generate.factors=FALSE) {
if (is.na(lang) | lang == get.lang(dat, F)$default) {
Expand Down

0 comments on commit 49572ac

Please sign in to comment.