Install the package:
# install.packages("remotes")
library("remotes")
remotes::install_github("phillc73/queryjlr")
library("queryjlr")
Run the setup function:
queryjlr_setup()
If your Julia installation is not found, it is possible to define the path to it. For example:
queryjlr_setup(julia_home = "/home/phillc/bin/julia-1.5.3/bin")
If this path is incorrect, all else fails.
Both the Query
and DataFrames
packages from Julia will be loaded, and installed if not present, during queryjlr_setup
Then try the following:
linqr("@from i in mtcars begin
@where i.disp > 200
@select {i.mpg, i.cyl}
@collect DataFrame
end")
For more about writing these types of queries, refer to the Query.jl
documentation.
Finally, have fun!
This package is only possible thanks to: