我正在尝试为我编写的程序创建一个应用程序。我在 Windows 上执行此操作没有任何问题,但我已经尝试了一个星期才能使 OSX 版本正常工作。这是我的终端的样子:
Thomass-iMac:gene_expression Tomallama$ python3 --version
Python 3.6.6
Thomass-iMac:gene_expression Tomallama$ python3 -m PyInstaller --
onefile gene_expression.py
190 INFO: PyInstaller: 3.3.1
191 INFO: Python: 3.6.6
196 INFO: Platform: Darwin-15.6.0-x86_64-i386-64bit
197 INFO: wrote
/Users/Tomallama/Desktop/Programs/gene_expression/gene_expression.spec
200 INFO: UPX is not available.
202 INFO: Extending PYTHONPATH with paths
['/Users/Tomallama/Desktop/Programs/gene_expression',
'/Users/Tomallama/Desktop/Programs/gene_expression']
202 INFO: checking Analysis
202 INFO: Building Analysis because out00-Analysis.toc is non existent
202 INFO: Initializing module dependency graph...
203 INFO: Initializing module graph hooks...
205 INFO: Analyzing base_library.zip ...
3787 …Run Code Online (Sandbox Code Playgroud) 我正试图弄清楚如何在我的R Shiny项目中保存反应性ggplots.我已经按照本指南以及R Shiny网站上的指南进行了操作.但是,我想我可能会遇到一个问题,因为我正在使用反应情节.
这是我到目前为止的代码.
ui <- fluidPage(
dashboardBody(
fluidRow(uiOutput('topbox')),
fluidRow(
tabBox(
id = 'tabset1',
width = '100%',
tabPanel('Grades Graph', downloadButton('Download'), plotOutput('individualGraph')),
)
)
)
)
server <- function(input, output, session) {
grades <- reactive({
req(input$file)
inFile <- input$file
if (endsWith(inFile$name, '.xlsx')){
gradesTbl <- read_excel(inFile$datapath)
gradesTbl <- gradesTbl %>%
arrange(Period, Student, Date, Type) %>%
mutate(Date = as.Date(Date))
return(gradesTbl)
} else if (endsWith(inFile$name, 'csv')){
gradesTbl <- read_csv(inFile$datapath)
gradesTbl <- gradesTbl %>%
arrange(Period, Student, Date, Type) %>%
mutate(Date = mdy(Date))
return(gradesTbl) …Run Code Online (Sandbox Code Playgroud)