Skip to content

Commit 6d9b5c8

Browse files
committed
drop excess stuff
1 parent d96a670 commit 6d9b5c8

File tree

2 files changed

+3494
-3500
lines changed

2 files changed

+3494
-3500
lines changed

vignettes/_vdat-data-columns.Rmd

+18-16
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
title: "Data within VDAT files"
33
output: rmarkdown::html_vignette
44
vignette: >
5-
%\VignetteIndexEntry{Data within VDAT files}
5+
%\VignetteIndexEntry{Data within VDAT files}
66
%\VignetteEngine{knitr::rmarkdown}
77
%\VignetteEncoding{UTF-8}
88
---
9-
9+
1010
```{r, include = FALSE}
1111
knitr::opts_chunk$set(
12-
collapse = TRUE,
13-
comment = "#>"
12+
collapse = TRUE,
13+
comment = "#>"
1414
)
1515
```
1616

@@ -29,12 +29,14 @@ The table below shows each receiver/VDAT type along with, in alphabetical order,
2929
```{r, echo=FALSE, message=FALSE}
3030
source("../tests/testthat/setup-testfiles.R")
3131
32-
for (i in seq_along(testfiles)) {
33-
vdat_to_csv(testfiles[i],
34-
outdir = td,
35-
quiet = TRUE
36-
)
37-
}
32+
suppressMessages(
33+
for (i in seq_along(testfiles)) {
34+
vdat_to_csv(testfiles[i],
35+
outdir = td,
36+
quiet = TRUE
37+
)
38+
}
39+
)
3840
3941
exported_csvs <- lapply(
4042
list.files(td, pattern = "\\.csv$", full.names = T),
@@ -45,16 +47,16 @@ exported_csvs <- lapply(
4547
names(exported_csvs) <- list.files(td, pattern = "\\.v.*$")
4648
```
4749

48-
```{r, make-data-dictionary, echo=FALSE}
50+
```{r, make-data-dictionary, echo=FALSE, message=FALSE}
4951
make_key <- function(exported_csv) {
5052
key <- exported_csv[grepl("_DESC$", exported_csv$V1), ]
5153
key$V1 <- gsub("_DESC$", "", key$V1)
52-
54+
5355
key <- key |>
5456
split(~V1, drop = TRUE) |>
5557
lapply(function(.) .[, colSums(. != "") != 0]) |>
5658
lapply(`[`, -1)
57-
59+
5860
key
5961
}
6062
@@ -84,7 +86,7 @@ data.frame(
8486
for (receiver_type in seq_along(keys)) {
8587
## Per file
8688
n_data_type <- length(keys[[receiver_type]])
87-
89+
8890
md <- paste0(
8991
"### ",
9092
names(keys)[receiver_type],
@@ -93,11 +95,11 @@ for (receiver_type in seq_along(keys)) {
9395
"\n\n"
9496
)
9597
cat(md)
96-
98+
9799
for (data_type in seq_along(keys[[receiver_type]])) {
98100
## per data type
99101
n_data_col <- length(keys[[receiver_type]][[data_type]])
100-
102+
101103
md <- paste0(
102104
"#### ",
103105
names(keys[[receiver_type]])[data_type],

0 commit comments

Comments
 (0)