JuliaInterop / JuliaInterop/JuliaCall

Rcpp-like interface

Open
#83 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
287
Forks
43
PR merge metrics
No merged PRs in 30d

Description

Hi Non-contradiction,

Thanks for the great package! I was just wondering if there were any thoughts about implementing a more Rcpp like interface. By that I mean having julia functions in a file with some sort of export tag and then a function to generate R wrappers around them. I don't think that would be super difficult to implement and would be an amazing interface to have.

Something like:

# JuliaCall::Export
function j_add(x, y)
   x + y
end

would generate:

j_add <- function(x,y) {
    julia_call(j_add, x, y)
}

which could then be used in R as normal

Thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No implementation files, tests, or entry points are named. Start by reviewing JuliaCall’s existing R/Julia interface, then clarify how export tags and wrapper generation should work; done means a Julia function such as j_add can produce a callable R wrapper.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia, r
Domain
developer-experience
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.