Code Monkey home page Code Monkey logo

vaporwave's People

Contributors

moldach avatar mpadge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar

vaporwave's Issues

Build Docker container

My extreme frustration with trying, and failing, to build open source projects with fonts and reticulate on Windows OS inspired this issue ๐ŸชŸ๐Ÿ™๐Ÿผ

Optimization of Docker Image Sizes for RStudio Environments :zap:

I would like to share some insights and observations from my recent endeavors to optimize Docker images for our RStudio projects, specifically those based on r-ver:4.3.2 and its derivatives.

In the quest to streamline my Docker images, I employed two prominent tools: slimtoolkit/slim and goldmann/docker-squash. Here are the key findings from this exercise:

  • The slim tool, while significantly reducing the image size to approximately 150MB, aggressively removes essential components, including s6-env and other critical elements necessary for the rstudio image to function correctly. Consequently, the resulting image, despite its reduced size, fails to operate as expected.

  • The docker-squash tool takes a more conservative approach, yielding a modest size reduction of roughly 1-2%. This reduction is consistent across both r-ver, rstudio, and vapoRwave images. Thus, it appears that docker-squash may not effectively optimize R packages, suggesting that the onus of optimization lies with the developer.

Screenshot from 2023-12-01 17-16-46
Screenshot from 2023-12-01 17-20-26
Screenshot from 2023-12-01 17-31-12
Screenshot from 2023-12-01 17-31-56
Screenshot from 2023-12-01 17-35-11

  • Upon further analysis, I identified that my vapoRwave package/container contributes an additional 1GB to the image size, accounting for one-third of the total image footprint. It is apparent that initial optimization efforts should target this package.

Screenshot from 2023-12-01 17-58-44

Moving forward, I propose to focus on refining the vapoRwave package to minimize its impact on the image size. Once complete, I will revisit the overall Dockerfile optimization to enhance efficiency while maintaining the necessary functionality of the RStudio environment.

Optimize the size of the R package :zap:

I will use the following tools and procedures to reduce the size of vapoRwave v0.2.0:

  • tools:package_dependencies()
  • remotes::system_requirements()
  • miniCRAN
  • Avoid using Depends: in DESCRIPTION:
    • Use Imports: for required packages
    • Use Suggests: for testing, documentation, or optional features
  • Use NAMESPACE instead for importing packages/functions (import() and importFrom() respectively)

Release

Hi, I'm trying to get this package onto conda forge. Can a release on Github be made to facilitate that?

Include fonts in inst/

Including the fonts in inst/ would make these fonts accessible to R code via system.file() -- allowing them to be be registered and loaded via extrafont within the vapoRwave package.

The DESCRIPTION file would need to reflect the font authors, copyright holders, etc. Most of the fonts seem to not have any license restrictions prohibiting this kind of distribution.

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.