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

add file encoding

parent a6e0f73f
Branches
Tags
No related merge requests found
...@@ -17,11 +17,19 @@ t <- tryCatch( ...@@ -17,11 +17,19 @@ t <- tryCatch(
install.packages('checkmate') install.packages('checkmate')
} }
) )
t <- tryCatch(
{find.package("withr")},
error = function(e){
install.packages('withr')
}
)
#load libraries #load libraries
library(shiny) library(shiny)
library(stringr) library(stringr)
library(checkmate) library(checkmate)
library(withr)
ui <- fluidPage( ui <- fluidPage(
#set style #set style
...@@ -1026,8 +1034,9 @@ server <- function(input, output) { ...@@ -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 to comment