우분투 16.04의 R 샤이니 서버에 2 개의 실행중인 앱이 있습니다. 모두이 기능이 완벽하게 작동, 일부 데이터 조작 (예를 들어 청소, 테이블 조인 등) 및 엑셀 함수 뭔가 등을 파일로 다음 출력을 덤프, 첫 번째 앱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")
, 그것은 완벽하게 작동했지만, 어떻게 든 지금하지 않고 다음 오류가 발생, 그것은 작동하지 않았다. 왜이 서버/컴퓨터의 다른 서버가 완벽하게 작동하는 데 반해이 앱은이 오류를 던집니까? 그것은 밝혀졌다
정말 효과가 있었으면 좋겠어요. 불행히도이 방법도 효과가 없었습니다. –