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

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

内容简介: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)

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

查看所有标签

猜你喜欢:

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

服务设计与创新实践

服务设计与创新实践

宝莱恩 (Andy Polaine)、乐维亚 (Lavrans Lovlie)、里森 (Ben Reason) / 王国胜、张盈盈、付美平、赵芳 / 清华大学出版社 / 2015-6-1 / CNY 69.00

产品经济的时代渐行渐远,在以服务为主导的新经济时代,在强调体验和价值的互联网时代,如何才能做到提前想用户之所想?如何比用户想得更周到?如何设计可用、好用和体贴的服务?这些都可以从本书中找到答案。本书撷取以保险业为代表的金融服务、医疗服务、租车及其他种种服务案例,从概念到实践,有理有据地阐述了如何对服务进行重新设计?如何将用户体验和价值提前与产品设计融合在一起? 《服务设计与创新实践》适合产品......一起来看看 《服务设计与创新实践》 这本书的介绍吧!

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具