r - 为什么我使用 fileInput 的数据路径更改为 /var 数据路径本身?以及如何取回原始数据路径
问题描述
当我使用上面的代码上传一个 csv 文件时,我用文本输出数据路径,但它看起来很实用,有人告诉我这看起来像一个 url 模式数据路径,我只想知道我怎样才能回到正常的数据路径比如/users/ziqinhe/...,因为我记得以前是正常路径但是不知道为什么会变成这样
这是我的代码:
library(reticulate)
ui <- fluidPage(
fileInput("aa","input csv file ", accept = c(".csv")),
textOutput("p"),
)
server <- function(input,output){
output$p <- renderText({
input$aa$datapath
})
}
shinyApp(ui, server)
谢谢你的帮助
解决方案
推荐阅读
- mongodb - Mongo DB 服务间歇性停止
- python - 每当两个重置之一时重置两个累积和列
- binance-smart-chain - 在 BSC 网络中创建令牌时,我无法弄清楚在 uint256 行 public totalSupply 中的 1 之后需要写入多少个零
- python - 带格式的 Python 文本换行
- apache-spark - 在 Spark 3.1 中使用 java 进行分区
- entity-framework-core - 使用 Simple Injector 为 Repository 注册通用解析器
- swift - UIImage 上的 MapKit 功能,放置图钉/注释
- hadoop - 更改具有大量数据的 Impala/Hive 表中的架构?
- java-8 - mvn install 在打包之前运行
- sharepoint - Sharepoint Online 日历到 Outlook 同步问题