Skip to content

Commit

Permalink
i #284 Update refresh functions
Browse files Browse the repository at this point in the history
- Make start_year_month optional
- Determine start_year_month from existing files if they exist
- Return error if no existing files, and no date specified

Signed-off-by: Dao McGill <[email protected]>
  • Loading branch information
daomcgill committed Dec 8, 2024
1 parent f74aff3 commit 557ad10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion exec/mailinglist.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ if (arguments[["parse"]] & arguments[["help"]]) {
tools <- yaml::read_yaml(tools_path)
conf <- yaml::read_yaml(conf_path)

perceval_path <- get_tool("perceval", tools)
perceval_path <- get_tool_project("perceval", tools)
mbox_file_path <- get_mbox_input_file(conf, project_key)

parsed_mbox <- parse_mbox(
Expand Down
4 changes: 2 additions & 2 deletions vignettes/download_mail.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ A similar function is also available for mod_mbox:
```{r eval=FALSE}
refresh_mod_mbox(
mailing_list = mbox_mailing_list,
#start_year_month = mbox_start_year_month,
save_folder_path= mbox_save_folder_path,
# start_year_month = mbox_start_year_month,
save_folder_path = mbox_save_folder_path,
verbose = TRUE
)
```
Expand Down

0 comments on commit 557ad10

Please sign in to comment.