私はRシャイニーのサーバー上で2つの実行中のアプリケーションをUbuntu 16.04に持っています。どちらも、この機能が完全に動作し、いくつかのデータ操作(例えば、洗浄、入社テーブルなど)およびExcelは、関数何かのようにファイルのように出力をダンプし、最初のアプリのためにR Shiny "R_ZIPCMD"パスのジッパーエラー
dumpExcel <- function(matched, non_matched=NULL, fileName, out_format='xlsx') {
if (out_format == 'xlsx') {
library(openxlsx)
output <- createWorkbook()
addWorksheet(output, "matched")
if (!(is.null(non_matched))) { addWorksheet(output, "non_matched") }
writeData(output,"matched", matched, colNames = T)
if (!(is.null(non_matched))) { writeData(output,"non_matched", non_matched, colNames = T) }
FileName = fileName
saveWorkbook(output, FileName, overwrite = T)
return(output)
} else if (out_format == 'csv') {
write.csv(matched, gsub('.xlsx', '.csv', fileName), row.names=F)
}
}
を行います。二つ目には、私は事前に行Sys.setenv(R_ZIPCMD = "/usr/bin/zip")
を追加しようとしました
Error in : zipping up workbook failed. Please make sure Rtools is installed or a zip application is available to R.
Try installr::install.rtools() on Windows. If the "Rtools\bin" directory does not appear in Sys.getenv("PATH") please add it to the system PATH
or set this within the R session with Sys.setenv("R_ZIPCMD" = "path/to/zip.exe")
、それは完璧に働いていたが、何とかそれは今ではなく、以下のエラーをスローし、それが動作しませんでした。どうしてこのアプリはこのエラーを投げかけますが、同じサーバー/マシンの他のサーバーは完全に動作していますか?
すべてのヘルプは高く評価されています...
残念ながら、これはうまくいきませんでした。 –