I have an app that runs well and is hosted on a server.
To run the app requires a username/password and then the input parameters to the model, and then a submit button to run the app and get the model's outputs.
我有一个运行良好的应用程序,并托管在服务器上。要运行这款应用程序,需要输入用户名/密码,然后是模型的输入参数,然后是一个提交按钮,以运行该应用程序并获取模型的输出。
Here is my question:
A user would like to run hundreds of scenarios using the app.
Each scenario requires different values of the input parameters.
But it is very time consuming trying to run these manually via GUI.
我的问题是:一个用户想使用这个应用程序运行数百个场景,每个场景都需要不同的输入参数值。但是通过GUI手动运行这些程序非常耗时。
Is it possible to specify these inputs as a list and then run the app/browser
via loop from command line or within R?
是否可以将这些输入指定为列表,然后通过命令行循环或在R中运行应用程序/浏览器?
I have looked online but can't find any solution yet
我已经在网上找过了,但还没有找到任何解决方案
更多回答
I think a better solution would be to move the server code into an R script as one big function with all the input parameters needed, create a list that captures all the combinations of inputs desired, and then run the script in a separate session, saving the output on disk to provide back to the client.
我认为更好的解决方案是将服务器代码作为一个包含所有所需输入参数的大函数移动到R脚本中,创建一个捕获所需输入的所有组合的列表,然后在单独的会话中运行该脚本,将输出保存在磁盘上以提供回客户端。
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer.
请编辑问题以将其限制为特定问题,并提供足够的详细信息以确定适当的答案。
优秀答案推荐
Sure, but you will have to change your app accordingly to take such a list as input and then perform your calculations based on such a list.
当然可以,但你必须相应地更改你的应用程序,才能将这样的列表作为输入,然后根据这样的列表执行计算。
If you can not change the app itself, a macro recorder might help you to automate the user input.
如果你不能改变应用程序本身,宏录制器可能会帮助你自动化用户输入。
更多回答
As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.
正如它目前所写的,你的答案并不清楚。请编辑以添加更多详细信息,以帮助其他人了解这是如何解决提出的问题的。你可以在帮助中心找到更多关于如何写出好答案的信息。
我是一名优秀的程序员,十分优秀!