Skip to content
Snippets Groups Projects
Commit 2a92a96a authored by lq39quba's avatar lq39quba
Browse files

add file encoding

parent a6e0f73f
No related branches found
No related tags found
No related merge requests found
......@@ -17,11 +17,19 @@ t <- tryCatch(
install.packages('checkmate')
}
)
t <- tryCatch(
{find.package("withr")},
error = function(e){
install.packages('withr')
}
)
#load libraries
library(shiny)
library(stringr)
library(checkmate)
library(withr)
ui <- fluidPage(
#set style
......@@ -1026,8 +1034,9 @@ server <- function(input, output) {
]
}')
#write to file
write(json, input$outputpath)
#write to file and set encoding
withr::with_options(list(encoding = "UTF-8"), write(json, input$outputpath))
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment