Skip to content

Commit

Permalink
add MyBrailleR()
Browse files Browse the repository at this point in the history
  • Loading branch information
ajrgodfrey committed Sep 23, 2023
1 parent 21a4c07 commit 8f73237
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
5 changes: 2 additions & 3 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
- R Project Sprint 2023 work with Deepayan led to improvement in the ability to extract content of graphics devices; added him as author
- R Project Sprint 2023 work with Gabe led to a working solution to extract recent console output; added him as author.
See the ShowMe(), SessionLog(), and GrabLast() functions.
- removed dependency on devtools as spelling package is brought in.


- removed hack to get devtools function now spelling package is brought in.
- added MyBrailleR() function to open the user folder.

# BrailleR 1.0.2
- improved CRAN test picked up inconsistencies with internal functions
Expand Down
12 changes: 12 additions & 0 deletions R/notepad.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
MyBrailleR = function(){
if (interactive()) {
if (.Platform$OS.type == "windows") {
browseURL(getOption("BrailleR.Folder"))
} else {
.WindowsOnly()
}
} else {
.InteractiveOnly()
}
return(invisible(NULL))
}

Notepad = notepad = function(file=""){
if (interactive()) {
Expand Down
9 changes: 6 additions & 3 deletions man/SetupBrailleR.Rd
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@

\name{SetupBrailleR}
\alias{SetupBrailleR}
\title{Establish the BrailleR folder for the user}
\alias(MyBrailleR)
\title{Establish or open the BrailleR folder for the user}
\usage{
SetupBrailleR()

MyBrailleR()
}
\value{
The path to the folder is returned invisibly.
}
\description{
Creates a permanent folder if the user agrees.
Creates a permanent folder called MyBrailleR if the user agrees. Windows users can open this file easily using MyBrailleR().
}
\details{
The user can establish a permanent folder if the BrailleR package is loaded in an interactive session. If only used in batch mode, the user will only be able to use the default BrailleR settings.
The user can establish a permanent MyBrailleR folder if the BrailleR package is loaded in an interactive session. If only used in batch mode, the user will only be able to use the default BrailleR settings.
}
\author{
A. Jonathan R. Godfrey with suggestions from Henrik Bengtsson and Brian Ripley.
Expand Down

0 comments on commit 8f73237

Please sign in to comment.