-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to run using command line only? #385
Comments
Hello, we are working on a command-line version of AccessMod, but it is not ready yet, and I'm not able at the moment to give you a landing date. |
That's the I use that to relaunch analysis during development, but I have to improve the experience for end users. Here are the main steps of the current workflow in version >
#!/bin/bash
AM_VERSION=5.7.20-beta-1.0
docker run --rm -ti \
-v $(pwd)/out:/replay/out \
-v $(pwd)/config.json:/replay/config.json \
fredmoser/accessmod:$AM_VERSION Rscript -e replay.R
Other examples with config files : https://github.com/fxi/AccessMod_shiny/tree/feature/config_save_restore/replay/example Caveats :
|
This is really cool! I was exploring it a bit and had one more question. I know it's not supported, but would there be a straightforward way of me calling the R functions directly on the backend for project creation, imports, and toolbox functions (excluding the manual facility adjustment) and having the server work as intended or would the refactoring to do so be especially difficult and cumbersome? (The reason I ask is my particular use case is a pipeline for many regions of interest and the ability to run cloudbased servers that can preprocess all of the data and run the tests simultaneously across multiple nodes.) |
Unfortunately, calling directly R functions will not be possible with this version: there is a lot going on the reactive side of the app to handle the naming convention, spatial validation, warnings, error handling, etc.. The current process to open some parts of the tool to a docker process will most likely be the only way. Open everything will be hard. Probably better starting from scratch and migrating piece by piece. My plan back in 2014 was to first develop a series of GRASS modules, then an API for R, then a job scheduler, then the reactive UI. This was not fully accepted and decisions were made to cut corners and produce the final app as quickly as possible and bundle it inside a VM to be able to run it on any platform, without installing anything, not even a GIS software. However, I had 6 months to produce the first beta release with 6 working modules: my initial plan was unrealistic in that time frame. But it would have been a precious investment in the long run. |
That makes sense. Thank you! |
If we wanted to integrate AccessMod into an automated pipeline is there way to run it without dependence on the GUI? I haven't seen anything in the documentation, but thought maybe it would exist undocumented to facilitate debugging.
The text was updated successfully, but these errors were encountered: