Skip to contents

This function saves Finna search results and metadata locally to a file in .rds format, allowing users to access and analyze the data offline without an internet connection.

Usage

save_for_offline(data, file_name = "offline_search_results")

Arguments

data

A tibble or data frame containing the Finna search results.

file_name

A string representing the name of the file to save. The function automatically appends ".rds" to the name if not already included.

Value

A message confirming that the data has been saved successfully.

Examples

if (FALSE) { # \dontrun{
search_results <- search_finna("sibelius")
save_for_offline(search_results, "sibelius_search_results")
} # }