将Maven用于R项目 [英] Using Maven for R projects

查看:126
本文介绍了将Maven用于R项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开始一个大量使用R的项目.我过去曾经使用过R,但仅在休闲模式下使用过,而我现在对遵循更严格的测试/源代码控制实践感兴趣. /持续集成.我希望在可能的情况下将此项目与Maven一起使用(对此如何使用Java管理软件包感到满意),但是我找不到任何证据表明可以将Maven与R一起使用.是否可以创建R Maven进行项目开发,如果可以的话,在哪里可以找到帮助我入门的步骤?

I am beginning work on a project that makes heavy use of R. I've used R in the past, but only in a casual mode, whereas I'm now interested in following a more rigid practice of test/source control/continuous integration. I'm hoping to use Maven with this project if possible (having been pleased with how this manages packages with Java), but I can't find any evidence that it is possible to use Maven with R. Is it possible to create an R project with Maven, and if so, where can I find steps to help me get started?

我找到了这个问题和这个

I've found this question and this question, but they don't mention R.

推荐答案

好吧,您可以利用 Maven Exec插件,其中包含资源,过滤器和jar插件,以伪造R项目类型.

Well you could make use of the Maven Exec Plugin with the resource, filter and jar plugins to fake an R project type.

您可以执行类似的操作,以与执行人员建立多个R目标插件,以便编译,过滤,测试等具有某种关联的R调用.

You can do something like this to set up multiple R goals with the exec plugin so that compile, filter, test, et al have some kind of R call associated.

http://maven.apache.org/plugins/maven-resources-插件/

这篇关于将Maven用于R项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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