Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deadline Functionality #4

Open
jarrod-dalton opened this issue Jul 24, 2019 · 4 comments
Open

Deadline Functionality #4

jarrod-dalton opened this issue Jul 24, 2019 · 4 comments

Comments

@jarrod-dalton
Copy link
Member

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")

@NikKrieger
Copy link
Collaborator

Which columns do you envision being in this output?

@jarrod-dalton
Copy link
Member Author

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

@NikKrieger
Copy link
Collaborator

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?

@jarrod-dalton
Copy link
Member Author

Yes all around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants