Coder Social home page Coder Social logo

nuest / outsider Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ropensci-archive/outsider

0.0 2.0 0.0 1.11 MB

:black_square_button::registered: Install and run programs, outside of R, inside of R

Home Page: https://antonellilab.github.io/outsider/

License: Other

R 95.69% TeX 4.31%

outsider's Introduction

Install and run programs, outside of R, inside of R

Build Status Coverage Status Project Status: Active – The project has reached a stable, usable state and is being actively developed. DOI ropensci

The Outsider is always unhappy, but he is an agent that ensures the happiness for millions of 'Insiders'.

The Outsider, Wilson, 1956.


Integrating external programs into a deployable, R workflow can be challenging. Although there are many useful functions and packages (e.g. base::system()) for calling code and software from alternative languages, these approaches require users to independently install dependant software and may not work across platforms. outsider aims to make this easier by allowing users to install, run and control programs outside of R across all operating systems.

For more detailed information, check out the outsider website

Installation

To install the development version of the package ...

devtools::install_github('AntonelliLab/outsider')

Additionally, you will also need to install Docker desktop. To install Docker visit the Docker website and follow the instructions for your operating system: Install Docker.

Quick example

library(outsider)
# outsider modules are hosted on GitHub
# this repo is a demonstration outsider module
# it contains a function for printing 'Hello World!' in Ubuntu 18.04
repo <- 'dombennett/om..hello.world'
module_install(repo = repo)
#> [1] TRUE
# look up the help files for the module
module_help(repo = repo)
# import the 'hello_world' function
hello_world <- module_import(fname = 'hello_world', repo = repo)
# run the imported function
hello_world()
#> Hello world!
#> ------------
#> DISTRIB_ID=Ubuntu
#> DISTRIB_RELEASE=18.04
#> DISTRIB_CODENAME=bionic
#> DISTRIB_DESCRIPTION="Ubuntu 18.04.1 LTS"

Available external programs

Modules available since 13:35 18 February 2019 (CET)

● astral

● bamm

● beast

● blast

● hello.world

● mafft

● pyrate

● raxml

● revbayes

For more details, see the available modules table

How does it work?

outsider makes use of the program docker which allows users to create small, deployable virtual machines, called Docker images. The advantage of these images is that they can be run on any machine that has Docker installed, regardless of operating system. The outsider package makes external programs available in R by facilitating the interaction between Docker and the R console through outsider modules. These modules consist of two parts: a Dockerfile that describes the Docker image that contains the external program and an R package for interacting with the Docker image. Upon installing and running a module through outsider, a Docker image is launched and the R code of the module is used to interact with the external program. Anyone can create a module. They are hosted on GitHub and can be searched for and downloaded through outsider.

outsider_outline

Version

Development version 0.

Maintainer

Dom Bennett

outsider's People

Contributors

dombennett avatar

Watchers

 avatar  avatar

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.