projects icon indicating copy to clipboard operation
projects copied to clipboard

Deadline Functionality

Open jarrod-dalton opened this issue 5 years ago • 4 comments

We could make a deadlines() function that is basically a dedicated print method for displaying upcoming deadlines.

deadlines <- function(horizon = Inf){
  projects() %>%
    filter(!is.na(deadline)) %>%
    arrange(deadline)
}

Maybe there could be a .Renviron object that allows the user to have their deadlines displayed whenever the projects package is loaded.

Come to think of it, I'd prefer to see projects() output whenever the package is loaded, without having to additionally type projects() to see it. So the .Renviron parameter could be something like c("projects", "deadlines", "both")

jarrod-dalton avatar Jul 24 '19 14:07 jarrod-dalton

Which columns do you envision being in this output?

NikKrieger avatar Sep 05 '19 15:09 NikKrieger

i guess i was just thinking the default projects() output, appended with the deadline column.

jarrod-dalton avatar Sep 05 '19 18:09 jarrod-dalton

I understand. Is horizon a maximum deadline date? That is, any projects with deadlines after horizon will be excluded?

Something to consider is that projects will be at the top of the list if they have a long-past deadline. Users will have to manually remove old deadlines. Maybe that's the point though--to motivate the user to curating their projects() list a little better?

NikKrieger avatar Sep 05 '19 18:09 NikKrieger

Yes all around.

jarrod-dalton avatar Sep 05 '19 19:09 jarrod-dalton