Include jar file when creating an R package

前端 未结 1 1944
囚心锁ツ
囚心锁ツ 2021-01-02 11:00

I created a skeleton R package:

lib
 jarFileHere.jar 
R
 r_code_file.R

The r_code_file.R tries to references a class file in j

相关标签:
1条回答
  • 2021-01-02 11:40

    Make your structure like:

    inst
     java
      jarFileHere.jar 
    R
     r_code_file.R
    

    For examples on how to include java in your package look at the helloJavaWorld package.

    Also take a look at the source of Deducer and DeducerplugInExample. There is a tutorial on including java code in your package available on Deducer's web manual: http://www.deducer.org/pmwiki/pmwiki.php?n=Main.Development#suaptijc

    0 讨论(0)
提交回复
热议问题