LoginSignup
2
1

More than 3 years have passed since last update.

shinyapps.ioでパッケージが認識されない問題の解決策(個人的メモ)

Posted at

問題

shinyapps.ioにアプリをアップロードすると、パッケージが見つかりませんエラーが生じている場合、

rsconnect::appDependencies()

を単純に実施すると、

Warning messages:
1: In fileDependencies.R(file) :
  Failed to parse C:/Users/*****/AppData/Local/Temp/RtmpYJF3Ju/file106067494ea/app.R ; dependencies in this file will not be discovered.
2: In fileDependencies.R(file) :
  Failed to parse C:/Users/*****/AppData/Local/Temp/RtmpYJF3Ju/file106067494ea/main_logic.R ; dependencies in this file will not be discovered.

という風にエラーが生じていることが確認できる。

これは、多分、日本語が入力されている場合に、うまくlibraryを拾えないことが原因と考えられる。

解決法

library.R
library(shiny)
library(tidyverse)
library(rhandsontable) ....

という感じで、日本語が一切含まれない.Rファイルを適当に作って、それも一緒にデプロイすることで、この問題解決しました。

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1