title: "Call Julia code from R" output: htmldocument: keepmd: true –-
Calling from R and/or Python
Knockoffs.jl can be called directly from R
or Python via the packages
knockoffsr
: https://github.com/biona001/knockoffsrknockoffspy
: https://github.com/biona001/knockoffspy
The name space is setup so that standard syntax of Julia translates directly over to the R/Python environment. There are 3 things to keep in mind:
- All
Knockoffs.jl
commands are prefaced byko$
(in R) orko.
(in python) - For
R
users, all commands with a!
are replaced with_bang
, for examplesolve_s!
becomessolve_s_bang
. - All
Knockoffs.jl
functions that require aSymmetric
matrix as inputs now accepts a regular matrix. However, forhc_partition_groups
andid_partition_groups
, one must provide an extra argumentisCovariance
to indicate whether the input data should be treated as a design matrix or a covariance matrix.
The first 2 points follows the practice of diffeqr.