diff --git a/src/Ahead.jl b/src/Ahead.jl index 002dd54..c7d26ba 100644 --- a/src/Ahead.jl +++ b/src/Ahead.jl @@ -1,5 +1,20 @@ -module Ahead +module Ahead + + import RCall as rc -# Write your package code here. + rc.reval("options(repos = c( + techtonique = 'https://techtonique.r-universe.dev', + CRAN = 'https://cloud.r-project.org')); + install.packages("ahead")") + + @rimport base as rbase + @rimport ahead as rahead + + function foo(x) + rbase.sum([1, 2, 3], var"rm.na" = true) + end + + # exports + export foo end