Some bugfix on example path
This commit is contained in:
parent
2951c13b04
commit
5480cced7c
@ -21,7 +21,7 @@ copyMusoExamleTo <- function(example = NULL, destination = NULL){
|
|||||||
choices <- tcltk::tkwidget(choiceWin,"ComboBox",
|
choices <- tcltk::tkwidget(choiceWin,"ComboBox",
|
||||||
editable = FALSE, values = choiceValues,
|
editable = FALSE, values = choiceValues,
|
||||||
textvariable = tcltk::tclVar(choiceValues[1]))
|
textvariable = tcltk::tclVar(choiceValues[1]))
|
||||||
tkpack(choices)
|
tcltk::tkpack(choices)
|
||||||
choiceValue <- NA
|
choiceValue <- NA
|
||||||
closeSelection <- tcltk::tkwidget(choiceWin,"button",text ="Select", command =function (){
|
closeSelection <- tcltk::tkwidget(choiceWin,"button",text ="Select", command =function (){
|
||||||
choiceValue <<- tcltk::tclvalue(tcltk::tcl(choices,"get"))
|
choiceValue <<- tcltk::tclvalue(tcltk::tcl(choices,"get"))
|
||||||
@ -38,7 +38,7 @@ copyMusoExamleTo <- function(example = NULL, destination = NULL){
|
|||||||
|
|
||||||
|
|
||||||
if(is.null(example)){
|
if(is.null(example)){
|
||||||
cExample<-paste0(system.file("examples","",package = "RBBGCMuso"),chooseExample())
|
cExample<-paste0(system.file("examples","",package = "RBBGCMuso"),"/",chooseExample())
|
||||||
}
|
}
|
||||||
|
|
||||||
if(is.null(destination)){
|
if(is.null(destination)){
|
||||||
@ -47,7 +47,6 @@ copyMusoExamleTo <- function(example = NULL, destination = NULL){
|
|||||||
|
|
||||||
currDir <- getwd()
|
currDir <- getwd()
|
||||||
setwd(cExample)
|
setwd(cExample)
|
||||||
print(getwd())
|
|
||||||
if(!WindowsP){
|
if(!WindowsP){
|
||||||
file.copy("./bin/muso", destination)
|
file.copy("./bin/muso", destination)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user