r - R Shiny不读取文件路径
问题描述
解决方案
The error here was in
# list of quarterly earnings worksheets
file_paths <- list.files('dashboard/data', pattern = 'xlsx', full.names = TRUE)
When the shiny app was running it was operating from the data
folder as the working directory when running source("data/import_finance.R")
.
To accommodate simply
# list of quarterly earnings worksheets
file_paths <- list.files('data', pattern = 'xlsx', full.names = TRUE)
推荐阅读
- ios - React Native iOS 原生模块传参
- javascript - 反应更新状态中的元素
- java - 如何检查字符串是否为数字,例如“1”是但“x”不是
- c++ - Istream 输入检查
- node.js - 如何获取当前文档中的最后一个字段对象_id作为父ID?
- amazon-web-services - UnauthorizedOperation on terraform 适用。如何运行以下 AWS 配置?
- flutter - 在 IOS 的 Flutter 端到端测试中允许权限对话框?
- flutter - 在 Flutter Web 的第三方控制的 Web 视图中使用 SSO
- javascript - Lookbehind 正则表达式在 firefox/safari 中不起作用
- python - 如何使用 python 将 .csv 文件转换为 .md