arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2409.00582cs.SEstat.ME
收藏

使用 R 与 shinyMobile 开发具备 CRUD 能力的移动应用:快速原型开发案例研究

CRUD-Capable Mobile Apps with R and shinyMobile: a Case Study in Rapid Prototyping

Nathan Henry

AI总结:

本文以生态瞬时评估应用 Harden 为例,展示如何利用 R、shinyMobile、PostgreSQL 和 Google Cloud Run 快速开发具备完整 CRUD 能力、交互图表和实时统计功能的跨平台移动应用,并论证了该框架在统计移动应用快速原型开发中的高效性。

摘要:

“Harden”是一个主要用于生态瞬时评估(EMA)的渐进式 Web 应用(PWA),大部分使用 R 开发,可在所有具备互联网连接的平台上运行,包括 iOS 和 Android。它利用 shinyMobile 包创建响应式移动用户界面(UI),使用 PostgreSQL 作为数据库后端,并借助 Google Cloud Run 在云端进行可扩展的无服务器托管。基于这一技术栈,我们能够快速原型开发一个完全具备 CRUD 能力(创建、读取、更新、删除)的移动应用,支持跨会话持久化用户数据、交互式图表和实时统计计算。本文将该框架与当前用于创建数据科学应用的替代框架进行了比较;我们认为,对于需要高级绘图能力的统计移动应用的快速原型开发与创建,shinyMobile 包提供了最高效的方法之一。本文概述了用于创建 Harden 应用的方法,并讨论了 shinyMobile 方法在应用开发中的优势与局限。希望这些信息能够鼓励其他熟悉 R 的程序员考虑使用该框架开发移动应用。

英文摘要:

"Harden" is a Progressive Web Application (PWA) for Ecological Momentary Assessment (EMA) developed mostly in R, which runs on all platforms with an internet connection, including iOS and Android. It leverages the shinyMobile package for creating a reactive mobile user interface (UI), PostgreSQL for the database backend, and Google Cloud Run for scalable hosting in the cloud, with serverless execution. Using this technology stack, it was possible to rapidly prototype a fully CRUD-capable (Create, Read, Update, Delete) mobile app, with persistent user data across sessions, interactive graphs, and real-time statistical calculation. This framework is compared with current alternative frameworks for creating data science apps; it is argued that the shinyMobile package provides one of the most efficient methods for rapid prototyping and creation of statistical mobile apps that require advanced graphing capabilities. This paper outlines the methodology used to create the Harden application, and discusses the advantages and limitations of the shinyMobile approach to app development. It is hoped that this information will encourage other programmers versed in R to consider developing mobile apps with this framework.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑