当前位置: 首页 > news >正文

网站备案信息真实性核验单 怎么弄策划方案

网站备案信息真实性核验单 怎么弄,策划方案,做嗳啪啪 网站,徐州模板厂shiny 能快速把R程序以web app的形式提供出来,方便使用,降低技术使用门槛。 本文提供的示例:把空格分隔的txt文件转为逗号分隔的csv文件。 前置依赖:需要有R环境(v4.2.0),安装shiny包(v1.9.1)。括号内是我使用的版本…

shiny 能快速把R程序以web app的形式提供出来,方便使用,降低技术使用门槛。

本文提供的示例:把空格分隔的txt文件转为逗号分隔的csv文件。

前置依赖:需要有R环境(v4.2.0),安装shiny包(v1.9.1)。括号内是我使用的版本。

install.packages(“shiny”)

1.运行与效果

  • 文件名:script/app3/app.R
  • 运行: > shiny::runApp(“script/app3/”)
  • 关闭:关闭浏览器。
  1. 左上角:上传文件,
  2. 右侧:预览效果
  3. 右下角:下载csv文件
    在这里插入图片描述

2.文件内容

script/app3/app.R 如下:

library(shiny)
library(bslib)# Define UI for slider demo app ----
ui <- page_sidebar(# App title ----title = "Blank space txt to csv | v0.0.1",# Sidebar panel for inputs ----sidebar = sidebar(# Input: Select a file ----fileInput("file1","Choose TXT File",multiple = TRUE,accept = c("text/csv","text/comma-separated-values,text/plain","text/blank-separated-values,text/plain",".csv")),tags$hr(),sliderInput("num","show number:",min = 2,max = 1000,value = 10),# Horizontal line ----tags$hr(),# Input: Checkbox if file has header ----checkboxInput("header", "Header", TRUE),# Input: Select separator ----radioButtons("sep","Separator",choices = c(Comma = ",",Semicolon = ";",Blank = " ",Tab = "\t"),selected = " "),# Input: Select quotes ----radioButtons("quote","Quote",choices = c(None = "","Double Quote" = '"',"Single Quote" = "'"),selected = ''),# Horizontal line ----tags$hr(),# Input: Select number of rows to display ----radioButtons("disp","Display",choices = c(Head = "head",All = "all"),selected = "head"),# ButtondownloadButton("downloadData", "Download csv")),# Output: Data file ----tableOutput("contents")
)# Define server logic to read selected file ----
server <- function(input, output) {output$contents <- renderTable({# input$file1 will be NULL initially. After the user selects# and uploads a file, head of that data file by default,# or all rows if selected, will be shown.req(input$file1)df <- read.csv(input$file1$datapath,header = input$header,sep = input$sep,quote = input$quote)if (input$disp == "head") {return(head(df, n=input$num))} else {return(df, n=input$num)}})# Downloadable csv of selected dataset ----output$downloadData <- downloadHandler(filename = function() {req(input$file1)paste(input$file1$datapath, ".csv", sep = "")},content = function(file) {req(input$file1)df <- read.csv(input$file1$datapath,header = input$header,sep = input$sep,quote = input$quote)write.csv(df, file, row.names = FALSE, quote=F)})
}if(0){# show blank separated txt file with headerrunApp("script/app3/")
}# Create Shiny app ----
shinyApp(ui, server)

Ref

  • https://shiny.posit.co/r/getstarted/shiny-basics/lesson1/

End

http://www.wangmingla.cn/news/137735.html

相关文章:

  • 番禺人才网车床工铣床工招聘抖音seo关键词优化排名
  • 关键词是在网站后台做的吗东莞百度seo排名
  • 趣味阁小程序入口网络营销乐云seo
  • 有没有招代理商的网站淘宝指数入口
  • 企业网站制作的软件设计网站模板
  • 怎么把做的网站发到网上去seo站长优化工具
  • 中山网站建设的公司企业网站建设优化
  • 专注湛江地区网站开发定制建设网站推广互联网推广
  • 网站的优化 设计提升网页优化排名
  • 集团网站建设引流推广方案
  • 哪里做网站排名优秀营销软文范例800字
  • 怎样做恶搞网站百度快速排名点击器
  • 高端模板网站建设正规接单赚佣金的app
  • 公司背景设计图长春seo技术
  • 张启亚学做网站电商平台怎么推广
  • 网站顶部flash上海网站建设方案
  • 做网站要用多少钱谷歌排名推广
  • 如何做彩票网站的源码抖音指数查询
  • 四川城市建设住建厅网站小红书推广引流
  • 做兼职一般去哪个网站好短视频seo厂家
  • 帝国cms 门户网站印度疫情最新消息
  • 微信小程序开发制作平台西安seo服务公司排名
  • 网站备案 企业 个人网站建设详细方案模板
  • 站外推广内容策划郑州企业网络推广外包
  • 建设工程施工合同 示范文本针对百度关键词策划和seo的优化
  • 包装设计网站素材网站推广软件免费观看
  • 南宁seo网站建设宁波品牌网站推广优化公司
  • 调取接口做网站品牌推广策略有哪些
  • 网站架构设计师工资待遇大的网站建设公司
  • 关于建设网站业务系统的请示seo免费优化网址软件