# Data ####
data <- lapply(1:3, function(x) {
mean = sample(1:100, 1, replace = FALSE)
sd = sample(1:100, 1, replace = FALSE)
rnorm(100, mean = mean, sd = sd)
})
data <- do.call(cbind.data.frame, data)
colnames(data) <- paste0("v", formatC(1:3, width = 6, flag = "0"))
test_file <- write.csv(data, paste0(tempdir(), "/test.csv"), row.names = FALSE,
na = "")
# Simulated rv list ####
rv <- {list(
file_upload_encrypt = cbind.data.frame(datapath =
paste0(tempdir(), "/test.csv"))
)}
# Perform the test ####
results <- EQUAL_perform_file_encryption(rv, server_address = tempdir())
Run the code above in your browser using DataLab