Giter VIP home page Giter VIP logo

wehi-researchcomputing / environmentmodules Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 762 KB

A user friendly R front-end for the Environment Modules system. Offers a way to load and unload system packages on shared HPC (High Performance Computing) environments, through R.

Home Page: https://wehi-researchcomputing.github.io/EnvironmentModules/

License: GNU General Public License v3.0

R 100.00%
environment-modules environment-variables rstats

environmentmodules's People

Contributors

multimeric avatar

Stargazers

 avatar  avatar

Watchers

 avatar

environmentmodules's Issues

not sure which modules are "default"

> module_avail('python')
 [1] "python/2.7.18"      "python/3.10.4"      "python/3.5.1"      
 [4] "python/3.5.3"       "python/3.6.5-intel" "python/3.7.0"      
 [7] "python/3.7.13"      "python/3.8.3"       "python/3.8.8"      
[10] "python/3.9.5" 

module_avail() doesn't show which one's the default Python. For example, in bash, the default module is underlined.

image

Interactive prompts

At various points it makes sense to ask the user between a small number of options. We can do this using menu().

For example, if they module_load("python") it probably makes sense to ask them which version they want.

If they module_load("X") and there is a dependency collision, we might ask them which option they want: to swap the colliding module with the new module, to cancel, or to purge and then load the new module.

Drop `cli` dependency

We no longer particularly need it since module_list and module_avail no longer output ANSI strings.

Info is not correct when loading conflicting module

 > module_load("python/3")
✔ Successfully loaded python/3

> module_list()
[1] "python/3.8.8"
> module_load("python/2")
Loading python/2.7.18
  ERROR: Conflicting python is loaded
✔ Successfully loaded python/2

The successfully loaded ... should be dropped or updated to provide correct info.

Support parsing JSON

--json is supported since 4.5. If this is available, we should use this to provide a more native R output, such as a character vector of modules when using module_avail().

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.