Rlang-QQ-0.1.1.0: quasiquoter for inline-R code

Safe HaskellNone

RlangQQ.Internal

Contents

Synopsis

the main quoter

quoteRExpression2 :: Int -> Bool -> [Char] -> Q ExpSource

going via binary serialization (classes from RlangQQ.Binary). This is used in r

utility functions

dropHS :: [Char] -> [Char]Source

go from the variable name used on the R-side to the one in the haskell side

label :: String -> ExpQSource

HList label

converting R's AST

hsVars :: Tree String -> [String]Source

gets variables like abc provided the R file contained hs_abc

data Intent Source

what is the usage of a hs_ variable on the R side?

Constructors

In

only read

Out

only assigned to

InOut

both

Instances

getConTOf :: String -> Q (Maybe Name)Source

this reify fails most of the time, since the type isn't available in a quasiquote (run in the renamer) for things declared in the same file.

classifyByConT :: [(String, b)] -> Q ([(String, b)], [(String, b)], [(String, b)])Source

tests

global variable quote index