@@ -6001,7 +6001,7 @@ pseudo1D <- function(x){range(x)[which.max(abs(range(x)))]}
6001
6001
#' @seealso `createObj`, `dianaHead`, `log_message`, `myAssign`, `refresh`
6002
6002
#'
6003
6003
#' @export
6004
- # file_open <- function(fileName, ...){
6004
+ # file_open <- function(fileName, ...){
6005
6005
6006
6006
# ## Create any/all of the digestR objects that are missing
6007
6007
# createObj()
@@ -10464,7 +10464,9 @@ myDir <- function(initialdir='', parent=NULL, title='', mustexist=TRUE){
10464
10464
mustexist=mustexist))
10465
10465
10466
10466
## Save the selected (not canceled) directory
10467
- if (length(returnVal) && nzchar(returnVal)){
10467
+ # if (length(returnVal) && nzchar(returnVal))
10468
+ if (length(returnVal) > 0 && all(nzchar(returnVal)))
10469
+ {
10468
10470
returnVal <- gsub('\\', '/', returnVal, fixed=TRUE)
10469
10471
pkgVar$prevDir <- returnVal
10470
10472
myAssign("pkgVar", pkgVar, save.backup = FALSE)
@@ -10542,7 +10544,9 @@ myOpen <- function( defaultextension='', filetypes='', initialfile='',
10542
10544
}
10543
10545
10544
10546
## Save the selected (not canceled) directory
10545
- if (length(returnVal) > 0 && nzchar(returnVal)){
10547
+ # if (length(returnVal) > 0 && nzchar(returnVal))
10548
+ if (length(returnVal) > 0 && all(nzchar(returnVal)))
10549
+ {
10546
10550
pkgVar$prevDir <- dirname(returnVal[1])
10547
10551
myAssign("pkgVar", pkgVar, save.backup=FALSE)
10548
10552
}
@@ -10608,7 +10612,9 @@ mySave <- function(defaultextension='', filetypes='', initialfile='',
10608
10612
initialfile=initialfile))
10609
10613
10610
10614
## Save the selected (not canceled) directory
10611
- if (length(returnVal) > 0 && nzchar(returnVal)){
10615
+ # if (length(returnVal) > 0 && nzchar(returnVal))
10616
+ if (length(returnVal) > 0 && all(nzchar(returnVal)))
10617
+ {
10612
10618
pkgVar$prevDir <- dirname(returnVal[1])
10613
10619
myAssign("pkgVar", pkgVar, save.backup=FALSE)
10614
10620
}
0 commit comments