• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

sethrfore/homebrew-r-srf: Custom Homebrew R formula with tcl-tk support and addi ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

sethrfore/homebrew-r-srf

开源软件地址:

https://github.com/sethrfore/homebrew-r-srf

开源编程语言:

Ruby 100.0%

开源软件介绍:

Customizable R formula for Homebrew

Custom hombrew r formula. Tcl-Tk support is added by default using the Mac OS system Tcl-Tk framework (see r.rb formula lines 61-63). The formula also provides optional support for the following dependencies: Cairo, IUC, Java, LibTIFF, OpenBLAS, Pango and TexInfo.

Operational X11/Xquartz and macOS Command Line Tools installations are build requirements. X11/Xquartz is required because the tk.h header file used in base r tcltk package includes X11 headers.

On macOS, Xcode must be installed for the appropriate Tcl-Tk config files to be available.

Cairo X11

In order for cairo support it is necessary to install a version of cairo with X11 headers. Since the Homebrew core cairo formula no longer supports the --with-x11 option, a custom cairo formula has been made available in this repository that will support R with cairo device capabilities. If this option is desired and you have a previously installed Homebrew version of cairo, reinstall using the formula provided here brew rm cairo && brew install -s sethrfore/r-srf/cairo-x11. Otherwise brew install -s sethrfore/r-srf/cairo-x11 should be sufficient. This may neccesitate reinstallation of other formulae depending on cairo.

Tcl-Tk X11

An X11 tcl-tk build can be installed via the tcl-tk-x11 formula available here. To install, do as follows:

brew tap sethrfore/homebrew-r-srf

brew install sethrfore/r-srf/tcl-tk-x11

Installation

When all system dependecies addressed in the previous section have been met, this modified R formula can be installed as follows.

Add the repository to your homebrew

brew tap sethrfore/homebrew-r-srf

Check available installation options

brew info sethrfore/r-srf/r

Compile the modified R formula from source with desired options

brew install -s sethrfore/r-srf/r --with-cairo-x11 --with-tcl-tk-x11

Note: If necessary, remove previous R and cairo installations prior to compiling the modified R formula. Once installed, the compiled dependencies can be checked by invoking R and running capabilities().

R/X11 support deprectation notice

While I won't be immediately deprecating X11 supported R builds, I am currently unlikely to continue maintaining them at some point in the furture. For those affected by this, please refer and post any comments to this discussion thread. All notices pertaining changes to R/X11 support will be posted here or in the relevant discussion. If you have any thoughts, suggestions or concerns surrounding how/when this process will take place, I highly recommend contributing to the discussion.

Note for R Developers

I am open to suggestions on how to improve the functionality of this formula. I am not a programming expert and welcome any tested solutions that enhance the functionality of this formula, specifically with reference to issues related to changes in recent Xcode and CLT deployments.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap