Skip to content

Commit 6f31970

Browse files
authored
Merge pull request #8 from dajmcdon/epi-archive-print
Added final newline to epi_archive print statement.
2 parents f94b87c + 2999a9e commit 6f31970

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

R/archive.R

+6-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,12 @@ epi_archive =
181181
cat(sprintf("Data archive (stored in DT field): %i x %i\n",
182182
nrow(self$DT), ncol(self$DT)))
183183
cat("----------\n")
184-
cat(sprintf("Public methods: %s",
184+
cat(sprintf("Columns in DT: %s\n", paste(ifelse(length(
185+
colnames(self$DT)) <= 4, paste(colnames(self$DT), collapse = ", "),
186+
paste(paste(colnames(self$DT)[1:4], collapse = ", "), "and",
187+
length(colnames(self$DT)[5:length(colnames(self$DT))]), "more columns")))))
188+
cat("----------\n")
189+
cat(sprintf("Public methods: %s\n",
185190
paste(names(epi_archive$public_methods),
186191
collapse = ", ")))
187192
},

0 commit comments

Comments
 (0)