Giter Site home page Giter Site logo

dockyard's People

Contributors

thebioengineer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dockyard's Issues

Docker needs sudo on Unices

Hi, I found your package from the rockerverse paper. Nice work!

One thing though: running docker typically requires sudo on Unix-based OSes, including Linux and Mac. I'll make a PR for this.

> list_images()
WARNING: Error loading config file: /home/hongo/.docker/config.json: stat /home/hongo/.docker/config.json: permission denied
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.40/images/json: dial unix /var/run/docker.sock: connect: permission denied
Error in gregexpr(pattern = "\\s\\s\\w", header)[[1]] :
  subscript out of bounds
In addition: Warning message:
running command 'docker image ls ' had status 1

Namespace collisions: consider R6 instead of S3

Just as a matter of design: convenience functions like run, install, copy_from_url etc are good to have, but also highly generic. Because of this, there's a good chance that they will collide with exported functions in other packages. In fact update already collides with the function from stats.

Instead of S3, perhaps consider using R6 to define your dockerfile class. Then you can expose these functions as class methods without having to worry about namespace collisions.

How it would look:

shiny_dockerfile <- Dockerfile$
    new()$
    from("rocker/r-ver:devel")$
    update()$
    install("...")$
    ...

instead of magrittr pipes, you use method chaining, which is basically the same idea expressed in OOP syntax.

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.