fixing normal example file
This commit is contained in:
parent
89d362f27d
commit
a93c3b7784
@ -37,6 +37,8 @@ copyMusoExampleTo <- 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())
|
||||||
|
} else {
|
||||||
|
cExample <- paste0(system.file("examples","",package = "RBBGCMuso"),"/","hhs")
|
||||||
}
|
}
|
||||||
|
|
||||||
if(is.null(destination)){
|
if(is.null(destination)){
|
||||||
@ -50,5 +52,5 @@ copyMusoExampleTo <- function(example = NULL, destination = NULL){
|
|||||||
} else {
|
} else {
|
||||||
file.copy(grep("^muso$", list.files(), value = TRUE, invert = TRUE),destination)
|
file.copy(grep("^muso$", list.files(), value = TRUE, invert = TRUE),destination)
|
||||||
}
|
}
|
||||||
setwd(currDir)
|
setwd(destination)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -44,7 +44,7 @@ plotMuso <- function(settings = NULL, variable = 1,
|
|||||||
warning(paste0("The plotType ", plotType," is not implemented, plotType is set to cts"))
|
warning(paste0("The plotType ", plotType," is not implemented, plotType is set to cts"))
|
||||||
plotType <- "cts"
|
plotType <- "cts"
|
||||||
}
|
}
|
||||||
|
# browser()
|
||||||
if(is.null(settings)){
|
if(is.null(settings)){
|
||||||
settings <- setupMuso()
|
settings <- setupMuso()
|
||||||
}
|
}
|
||||||
@ -120,6 +120,7 @@ plotMuso <- function(settings = NULL, variable = 1,
|
|||||||
numVari <- ncol(musoData)-5
|
numVari <- ncol(musoData)-5
|
||||||
|
|
||||||
pointOrLineOrPlot <- function(musoData, variableName, plotType="cts", expandPlot=FALSE, plotName=NULL){
|
pointOrLineOrPlot <- function(musoData, variableName, plotType="cts", expandPlot=FALSE, plotName=NULL){
|
||||||
|
# browser()
|
||||||
if(!expandPlot){
|
if(!expandPlot){
|
||||||
if(plotType=="cts"){
|
if(plotType=="cts"){
|
||||||
if(length(variableName)==1){
|
if(length(variableName)==1){
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user