Non-Contradiction / JuliaCall

Embed Julia in R
https://non-contradiction.github.io/JuliaCall/index.html
Other
266 stars 36 forks source link

function "stopped" #77

Open zhaotianjing opened 5 years ago

zhaotianjing commented 5 years ago

Hi, I use JuliaCall::julia_call() to wrap a function get_pedigree from Julia to R. But a very strange thing happened:

If I select multiple lines of code, and run these lines:

get_pedigree(xxxx)
another code, for example, print(1)
another code

It will only run one line get_pedigree(xxxx). So I cannot run the whole script. Code under get_pedigree cannot continue running.

Do you know what may happen? I feel really confusing and it's very strange to me.

There is exactly how I write the function:

get_pedigree = function(path, separator = ",", header = TRUE){

  header = as.integer(header)

  JuliaCall::julia_call("get_pedigree", path, separator = separator, header = header)

}
Non-Contradiction commented 5 years ago

Without enough information, it is hard to tell where the problem is. I doubt that the problem might be in the Julia function pedigree. Could you make a minimal working example so I can dig into the issue? Thanks!