Safe Haskell | None |
---|---|
Language | Haskell2010 |
- quoteRExpression2 :: Int -> Bool -> String -> Q Exp
- unlessQ :: Bool -> ExpQ -> ExpQ
- whenQ :: Bool -> ExpQ -> ExpQ
- splitKnitrHdr :: String -> (String, String)
- withRawFile :: String -> (String, ExpQ -> ExpQ)
- addLambda :: Map Int (Set String) -> ExpQ -> ExpQ
- dropHS :: [Char] -> [Char]
- prefixes :: [[Char]]
- label :: [Char] -> ExpQ
- label' :: String -> ExpQ
- var :: [Char] -> ExpQ
- mkHList :: [ExpQ] -> ExpQ
- notOut :: Intent -> Bool
- notIn :: Intent -> Bool
- parseTree' :: Parser (Tree String)
- parseTree :: Parser (Tree String)
- hsVars :: Tree String -> [String]
- labelTree :: Tree String -> Tree (String, Int)
- data Intent
- classifyExp :: Tree String -> Maybe (String, Intent)
- hsClassify :: Tree String -> Map String Intent
- parseTreeTest2 :: IO ()
- parseTreeTest3 :: String -> IO ()
- parseTreeTest :: [Char] -> IO ()
- getRlangQQ_n :: Q Int
- rlangQQ_n :: IORef Int
the main quoter
quoteRExpression2 :: Int -> Bool -> String -> Q Exp Source
going via binary serialization (classes from RlangQQ.Binary). This is used in r
splitKnitrHdr :: String -> (String, String) Source
utility functions
dropHS :: [Char] -> [Char] Source
go from the variable name used on the R-side to the one in the haskell side
converting R's AST
parseTree' :: Parser (Tree String) Source
hsVars :: Tree String -> [String] Source
gets variables like abc
provided the R file contained hs_abc
what is the usage of a hs_
variable on the R side?
tests
parseTreeTest2 :: IO () Source
parseTreeTest3 :: String -> IO () Source
parseTreeTest :: [Char] -> IO () Source
global variable quote index
getRlangQQ_n :: Q Int Source