将jar文件下载到inst/java目录中以获取R包 [英] Download jar file into inst/java directory for a R package

查看:140
本文介绍了将jar文件下载到inst/java目录中以获取R包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在安装阶段将JAR下载到R软件包的目录inst/java中?

Is it possible to download a JAR into the directory inst/java of a R package on the installation stage?

我想将包裹提交给CRAN,但是罐子太大,他们不会接受.我认为一种可能的解决方案是自动下载jar并将其放入inst/java

I want to submit a package to CRAN, but the jar is too big and they are not going to accept it. I thought one possible solution would be to automatically download the jar and place it inside inst/java

我认为H2O在其 build.gradle .

有可能吗?如果是这样,我需要使用gradle吗?

Would it be possible? if so, do I need to use gradle?

它似乎在

It seems in make-dist.sh they also download the jar.

推荐答案

这是密钥文件:

基本上,有一个R源文件可以下载. CRAN的Kurt Hornik向我介绍了这种技术.

Basically there is one R source file which does the download. This technique was referred to me by Kurt Hornik from CRAN.

发生的事情是实际上传的文件集很小,但是在CRAN内部的托管程序包构建过程中,下载了jar文件,而实际的CRAN程序包中确实包含了jar文件.

What's happening is the actual uploaded file set is small, but during the hosted package building process inside of CRAN the jar file is downloaded, and the actual CRAN package does contain the jar file.

这篇关于将jar文件下载到inst/java目录中以获取R包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆