We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03ccb98 commit 9114c46Copy full SHA for 9114c46
R/todo.R
@@ -8,9 +8,10 @@ TASK_FILE <- ".tasks.txt" # nolint
8
add_task <- function(task) { #Trying to correct the function
9
write(task, file = TASK_FILE, append = TRUE, sep = "\n")
10
#Adding the task to read the lines
11
+ if (interactive()) {
12
cat(paste0("Added task: ", task, "\n"))
13
}
-
14
+}
15
list_tasks <- function() {
16
if (!file.exists(TASK_FILE)) return("No tasks found.")
17
tasks <- readLines(TASK_FILE)
0 commit comments