Skip to content

Commit

Permalink
Added os.manage to the main menu bar
Browse files Browse the repository at this point in the history
  • Loading branch information
talgalili committed Mar 13, 2013
1 parent 88ab31e commit 45cecc4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion NEWS
Expand Up @@ -145,4 +145,5 @@ TODO for future releases:
* update RTools to be smarter about how to ask the user what to choose. Also check if the Rtools is already installed or not (devtools has such a function) * update RTools to be smarter about how to ask the user what to choose. Also check if the Rtools is already installed or not (devtools has such a function)
* update README.md for 0.8.5 * update README.md for 0.8.5
* Add install.notepad and install.notepadpp * Add install.notepad and install.notepadpp
* Maybe add some timer to the os.manage functions. And also allow input for how long from x time to perform the action. * Maybe add some timer to the os.manage functions. And also allow input for how long from x time to perform the action.
* Add a rate function for the package
2 changes: 1 addition & 1 deletion R/os.manage.r
Expand Up @@ -195,7 +195,7 @@ os.manage <- function(use_GUI = TRUE, ...) {
"Restart", "Restart",
"Cancel") "Cancel")


the_answer <- menu(choices, graphics = use_GUI, title = "Managing action for your OS (for Windows)") the_answer <- menu(choices, graphics = use_GUI, title = "Manage your OS (for Windows)")


switch(the_answer, switch(the_answer,
os.shutdown(), os.shutdown(),
Expand Down
1 change: 1 addition & 0 deletions R/zzz.r
Expand Up @@ -70,6 +70,7 @@ add.installr.GUI <- function() {
winMenuAddItem("Update", "Update R", "updateR()") winMenuAddItem("Update", "Update R", "updateR()")
winMenuAddItem("Update", "Update R packages", "update.packages(ask = F)") winMenuAddItem("Update", "Update R packages", "update.packages(ask = F)")
winMenuAddItem("Update", "Install software", "installr()") winMenuAddItem("Update", "Install software", "installr()")
winMenuAddItem("Update", "Manage Windows", "os.manage()")
return(invisible(TRUE)) return(invisible(TRUE))
} else { } else {
return(invisible(FALSE)) return(invisible(FALSE))
Expand Down

0 comments on commit 45cecc4

Please sign in to comment.