{hexmake} is one of the 5 Grand Prizes of the 2020 Shiny Contest

栏目: IT技术 · 发布时间: 3年前

内容简介:Hey y’all!I’m very happy to announce that my

Hey y’all!

I’m very happy to announce that my {hexmake} application has won one of the 5 Grand Prizes of the 2020 shiny contest, organized by RStudio!

{hexmake} is a pretty simple application when it comes to its idea: building hex stickers. But I wanted this simple idea to become a playground for showcasing more advanced {shiny} features: namely manipulating images with live display, importing and exporting data with a specific file format (here .hex ), and importing and exporting to an external database (here a MongoDB).

You can give {hexmake} a try at connect.thinkr.fr/hexmake , and read more about the Shiny Contest results on the RStudio blog . The source code of the application is at github.com/ColinFay/hexmake .

You can also play with {hexmake} on your machine by installing it with:

# Install
remotes::install_github("ColinFay/hexmake")
# Run
hexmake::run_app(with_mongo = FALSE)

If you want to use a mongodb as a back-end, you can launch one using docker with:

docker run \
  -v /mongo/data/db:/data/db \
  -v /mongo/data/dump:/dump \
  -p 12334:27017 \
  -d --name mongohexmake \
  -e MONGO_INITDB_ROOT_USERNAME=myuser \
  -e MONGO_INITDB_ROOT_PASSWORD=mypassword \
  mongo:3.4

Then launch the app using:

# Change these env variables to suite your mongo configuration
Sys.setenv("MONGOPORT" = 12334)
Sys.setenv("MONGOURL" = "127.0.0.1")
Sys.setenv("MONGODB" = "hex")
Sys.setenv("MONGOCOLLECTION" = "make")
Sys.setenv("MONGOUSER" = "myuser")
Sys.setenv("MONGOPASS" = "mypassword")
hexmake::run_app(with_mongo = TRUE)

以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

风口上的汽车新商业

风口上的汽车新商业

郭桂山 / 人民邮电出版社 / 59

本书从互联网+汽车趋势解析、汽车电商困局突围策略、汽车后市场溃败求解等三个篇章详细阐述了作者的观察与思考,当然更多的还是作者在汽车电商行业的实践中得出的解决诸多问题的战略策略,作者站在行业之巅既有战略策略的解决方案,同时也有战术上的实施细则,更有实操案例解析与行业大咖访谈等不可多得的干货。当然,作者一向追崇的宗旨是,书中观点的对错不是最重要的,重在与行业同仁探讨,以书会友,希望作者的这块破砖头,能......一起来看看 《风口上的汽车新商业》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

MD5 加密
MD5 加密

MD5 加密工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具