Skip to content

Commit

Permalink
adding explicit stringsAsFactors = FALSE in package code
Browse files Browse the repository at this point in the history
  • Loading branch information
pboesu committed Mar 2, 2020
1 parent 44a3e0f commit 1b8f07d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions R/ucrdtw.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#' @export
#'
summary.ucrdtw <- function(object, ...){
print(as.data.frame.list(object), row.names=FALSE, ...)
print(as.data.frame.list(object), row.names=FALSE, stringsAsFactors = FALSE, ...)
}

#' Summarize subsequence search
Expand All @@ -23,7 +23,7 @@ summary.ucrdtw <- function(object, ...){
#' @export
#'
summary.ucred <- function(object, ...){
print(as.data.frame.list(object), row.names=FALSE, ...)
print(as.data.frame.list(object), row.names=FALSE, stringsAsFactors = FALSE, ...)
}


Expand Down
4 changes: 2 additions & 2 deletions data-raw/prepare_data.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#prepare package data
synthetic_control <- read.table("data-raw/synthetic_control.data")
synthetic_control <- read.table("data-raw/synthetic_control.data", stringsAsFactors = FALSE)
synthetic_control <- as.matrix(synthetic_control)
devtools::use_data(synthetic_control)
usethis::use_data(synthetic_control, overwrite = TRUE)
#write out data file as one long line
write.table(as.vector(t(synthetic_control)), "inst/extdata/col_sc.txt", row.names=FALSE, col.names=FALSE)
#write out query files
Expand Down
Binary file modified data/synthetic_control.rda
Binary file not shown.
2 changes: 1 addition & 1 deletion rucrdtw.Rproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ StripTrailingWhitespace: Yes

BuildType: Package
PackageUseDevtools: Yes
PackageInstallArgs: --no-multiarch --with-keep.source
PackageInstallArgs: --with-keep.source
PackageRoxygenize: rd,collate,namespace,vignette

0 comments on commit 1b8f07d

Please sign in to comment.