Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,9 @@ export(write_rodents_profiles_tab_html)
export(www_path)
export(zip_unzip)
importFrom(arrow,read_csv_arrow)
importFrom(arrow,read_parquet)
importFrom(arrow,write_csv_arrow)
importFrom(arrow,write_parquet)
importFrom(bslib,bs_theme)
importFrom(coda,HPDinterval)
importFrom(coda,as.mcmc)
Expand Down
4 changes: 4 additions & 0 deletions R/data_input_output.R
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ write_data <- function (x = NULL,

write_yaml(x, file = full_path)

} else if (file_ext(filename) == "parquet"){

write_parquet(x, sink = paste(full_path,".parquet",sep=""))

} else if (file_ext(filename) == "json"){

x2 <- serializeJSON(x = x)
Expand Down
2 changes: 1 addition & 1 deletion R/evaluate.R
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ read_forecasts_evaluations <- function (main = "."){

} else {

out <- as.data.frame(read_csv_arrow(file = eval_path))
out <- as.data.frame(read_parquet(file = eval_path))

if ("species" %in% colnames(out)) {
out <- na_conformer(out)
Expand Down
2 changes: 1 addition & 1 deletion R/portalcasting.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' @importFrom arrow read_csv_arrow write_csv_arrow
#' @importFrom arrow read_csv_arrow write_csv_arrow read_parquet write_parquet
#' @importFrom bslib bs_theme
#' @importFrom coda as.mcmc HPDinterval
#' @importFrom english english
Expand Down
2 changes: 1 addition & 1 deletion R/zip_unzip_forecasts.R
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ zip_unzip <- function(type = NULL,
}

# Zip forecasts_evaluations.csv
eval_file <- paste0(proj_path, "/forecasts_evaluations.csv")
eval_file <- paste0(proj_path, "/forecasts_evaluations.parquet")
zipfile <- paste0(proj_path, "/forecasts_evaluations.zip")
zip_files(zipfile, eval_file)
}
Expand Down
1 change: 1 addition & 0 deletions portalcasting.Rproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ LaTeX: pdfLaTeX
BuildType: Package
PackageUseDevtools: Yes
PackageInstallArgs: --no-multiarch --with-keep.source
PackageRoxygenize: rd,collate,namespace
Loading