看到RStudio公司官网上那些R包的六角贴,真的很心动,今日笔者也开发了一个R包ecce,这个包可以实现英汉互译,支持向量化参数传入,同时还支持直接打开有道网页查看完整的翻译信息,目前已更新到v1.0.4,源码托管在GitLab上1。 经过大量的测试,目前已通过了CRAN的自动化测试,目前官人正在进行人工测试阶段。官人的回复如下:
Dear maintainer,
package ecce_1.0.4.tar.gz has been auto-processed and is pending a manual inspection of this new CRAN submission. A CRAN team member will typically respond to you within the next 10 working days. For technical reasons you may receive a second copy of this message when a team member triggers a new check.
Log dir: https://win-builder.r-project.org/incoming_pretest/ecce_1.0.4_20200620_110311/
The files will be removed after roughly 7 days.
Installation time in seconds: 5
Check time in seconds: 76
R Under development (unstable) (2020-06-19 r78718)Pretests results:
Windows: https://win-builder.r-project.org/incoming_pretest/ecce_1.0.4_20200620_110311/Windows/00check.log
Status: 1 NOTE
Debian: https://win-builder.r-project.org/incoming_pretest/ecce_1.0.4_20200620_110311/Debian/00check.log
Status: 1 NOTENo strong reverse dependencies to be checked.
Best regards,
CRAN teams’ auto-check service
虽然还得等10个工作日,但是依然难掩内心那种久违的成就感。欣喜之余,打算为自己心爱的R包也设计一个六角贴。知乎黄天元一篇博文《制作R包六边形图标》给了我希望,真的有人已经开发出了制作六角帖的R包。知乎上另外一篇博文《简单三步制作六角贴》也是一篇非常棒的教程。
制作六角贴的这个神奇的包是hexSticker2,上面有几个例子很棒。还有一个神奇的网站:http://connect.thinkr.fr/hexmake/,这个网站支持在线制作六角贴。作为一个R user,当然是优先选择代码实现了。下面给出本人开发的R包ecce的六角贴的代码。
|
|

很幸运,几乎没怎么定制,效果就已经非常棒了,蓝天、白云、百灵鸟、开窗绿意尽收眼底,简直完美!
其实这个包还可以对背景颜色、字体、字体大小、字体颜色、边线颜色、边框填充颜色等非常多的参数进行设置,对各种元素的控制简直不能更细。该包更多参数设置请在R中运行?hexSticker::sticker
查看。
最后,着重推荐下一个各种颜色搭配方案的网站:https://coolors.co/,简直让人叹为观止。