R Shiny-在我的本地计算机上访问应用 [英] R Shiny - Access an App on my Local Machine

查看:266
本文介绍了R Shiny-在我的本地计算机上访问应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法避免Windows在工作.因此,我有一台第二台机器,可以用来完成所有繁重的工作和数据分析.在理想的世界中,我可以创建一个Shiny应用程序,然后从工作局域网中的另一台计算机上访问它.

I can not avoid windows at work. As such, I have a second machine that I use to do all of my heavy lifting and data analysis. In an ideal world, I could create a Shiny app and access it from another computer on my work's local network.

我的IT人员提出的解决方案是使用远程桌面,该功能可以工作,但是我真的不希望其他用户锁定计算机.

The solution that my IT folks proposed was using Remote Desktop, which COULD work, but I don't really want other users locking the machine.

有人对我如何允许网络上的计算机查看我的Shiny应用程序有见解吗?如果需要调整一些设置,我应该在第二台计算机上具有管理员权限.

Does anyone have insight as to how I can allow computers on my network to view my Shiny apps? I should have admin rights on my 2nd machine in case I need to tweak a few settings.

编辑:虽然我的理想用例是Shiny,但我还想访问其他基于R的报告,例如Slidify演示文稿,已编译的R Markdown报告,以及可能编译到独立网站的Gitbook.

While my ideal use case is Shiny, I would also want to access other R-based reports like Slidify presentations, compiled R Markdown reports, and perhaps, Gitbooks compiled to stand-alone websites.

谢谢.

推荐答案

将host参数设置为0.0.0.0应该足以使其在localhost之外广播,例如

It should be sufficient to set the host argument to 0.0.0.0 to allow it to broadcast beyond localhost, e.g.

runApp("app_name",host="0.0.0.0",port=3168)

然后您可以访问http://machine2DNSname:3168进行查看.

Then you can visit http://machine2DNSname:3168 to see it.

这篇关于R Shiny-在我的本地计算机上访问应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆