FlowrConfig : { amend ( config : FlowrConfig , amendmentFunc : ( config : { abstractInterpretation : { dataFrame : { maxColNames : number ; readLoadedData : { maxReadLines : number ; readExternalFiles : boolean } ; } ; wideningThreshold : number ; } ; defaultEngine ?: "r-shell" | "tree-sitter" ; engines : (
| { rPath ?: string ; type : "r-shell" ; [ key : string ]: unknown } | { lax ?: boolean ; treeSitterWasmPath ?: string ; type : "tree-sitter" ; wasmPath ?: string ; [ key : string ]: unknown ; } )
[] ; ignoreSourceCalls : boolean ; project : { resolveUnknownPathsOnDisk : boolean } ; repl : { dfProcessorHeat : boolean ; quickStats : boolean } ; semantics : { environment : { overwriteBuiltIns : { definitions : (
| { assumePrimitive ?: boolean ; names : ((...)
| (...))
[] ; type : "constant" ; value : unknown ; } | { assumePrimitive ?: boolean ; config : { constructName ?: (...)
| (...)
; readIndices : boolean } ; names : ((...)
| (...))
[] ; suffixes : ((...)
| (...))
[] ; type : "replacement" ; } | { assumePrimitive ?: boolean ; config ?: | { forceFollow ?: ...
; includeFunctionCall ?: ...
; libFn ?: ...
; } | { forceArgs ?: ...
; libFn ?: ...
; treatIndicesAsString : ...
} | { indexOfFunction ?: ...
; libFn ?: ...
; nameOfFunctionArgument ?: ...
; resolveInEnvironment ?: ...
; resolveValue ?: ...
; unquoteFunction ?: ...
; [ key : ...
]: ...
; } | { canBeReplacement ?: ...
; forceArgs ?: ...
; libFn ?: ...
; makeMaybe ?: ...
; mayHaveMoreArgs ?: ...
; modesForFn ?: ...
; quoteSource ?: ...
; superAssignment ?: ...
; swapSourceAndTarget ?: ...
; targetVariable ?: ...
; } | { canBeReplacement ?: ...
; forceArgs ?: ...
; libFn ?: ...
; makeMaybe ?: ...
; mayHaveMoreArgs ?: ...
; modesForFn ?: ...
; quoteSource ?: ...
; source : ...
; superAssignment ?: ...
; swapSourceAndTarget ?: ...
; target : ...
; targetVariable ?: ...
; } | { cfg ?: ...
; forceArgs ?: ...
; hasUnknownSideEffects ?: ...
; libFn ?: ...
; readAllArguments ?: ...
; returnsNthArgument ?: ...
; treatAsFnCall ?: ...
; useAsProcessor ?: ...
; } | { forceArgs ?: ...
; libFn ?: ...
; useAsProcessor ?: ...
} | { includeFunctionCall ?: ...
; libFn ?: ...
} | { args ?: ...
; libFn ?: ...
} | { args : ...
; libFn ?: ...
} | { forceArgs ?: ...
; libFn ?: ...
; quoteArgumentsWithIndex ?: ...
} | { args : ...
; hook : ...
; libFn ?: ...
} | { assignmentOperator ?: ...
; assignRootId ?: ...
; constructName ?: ...
; forceArgs ?: ...
; libFn ?: ...
; makeMaybe ?: ...
; readIndices ?: ...
; } | { args : ...
; inferFromClosure ?: ...
; libFn ?: ...
} | { args : ...
; libFn ?: ...
} | { evalRhsWhen : ...
; forceArgs ?: ...
; lazy : ...
; libFn ?: ...
} | { block : ...
; handlers : ...
; libFn ?: ...
} ; evalHandler ?: string ; names : ((...)
| (...))
[] ; processor : | Access | Apply | Assignment | AssignmentLike | Default | DefaultReadAllArgs | Eval | ExpressionList | ForLoop | FunctionDefinition | Get | IfThenElse | Library | List | Local | Pipe | Quote | Recall | RegisterHook | RepeatLoop | Replacement | Rm | S3Dispatch | S7NewGeneric | S7Dispatch | Source | SpecialBinOp | StopIfNot | Try | Vector | WhileLoop ; type : "function" ; } )
[] ; loadDefaults ?: boolean ; } ; } ; } ; solver : { evalStrings : boolean ; instrument : { dataflowExtractors ?: ( extractor : DataflowProcessors < ParentInformation > , ctx : FlowrAnalyzerContext , ) => DataflowProcessors < ParentInformation > ; } ; resolveSource ?: { applyReplacements ?: { [ key : string ]: string } [] ; dropPaths : DropPathsOption ; ignoreCapitalization : boolean ; inferWorkingDirectory : InferWorkingDirectory ; repeatedSourceLimit ?: number ; searchPath : string [] ; [ key : string ]: unknown ; } ; slicer ?: { threshold ?: number } ; variables : VariableResolve ; } ; [ key : string ]: unknown ; } , ) => void | FlowrConfig , ) : FlowrConfig ; clone ( config : FlowrConfig ) : FlowrConfig ; default () : FlowrConfig ; fromFile ( configFile ?: string , configWorkingDirectory ?: string ) : FlowrConfig ; getForEngine < T extends "r-shell" | "tree-sitter" > ( config : FlowrConfig , engine : T , ) : undefined | (EngineConfig & { type: T; })
; name : "FlowrConfig" ; parse ( jsonString : string ) : undefined | FlowrConfig ; Schema : ObjectSchema < any > ; setInConfig < Path extends string > ( config : FlowrConfig , key : Path , value : PathValue < FlowrConfig , Path > , ) : FlowrConfig ; setInConfigInPlace < Path extends string > ( config : FlowrConfig , key : Path , value : PathValue < FlowrConfig , Path > , ) : void ; } Type declaration amend : functionamend ( config : FlowrConfig , amendmentFunc : ( config : { abstractInterpretation : { dataFrame : { maxColNames : number ; readLoadedData : { maxReadLines : number ; readExternalFiles : boolean } ; } ; wideningThreshold : number ; } ; defaultEngine ?: "r-shell" | "tree-sitter" ; engines : (
| { rPath ?: string ; type : "r-shell" ; [ key : string ]: unknown } | { lax ?: boolean ; treeSitterWasmPath ?: string ; type : "tree-sitter" ; wasmPath ?: string ; [ key : string ]: unknown ; } )
[] ; ignoreSourceCalls : boolean ; project : { resolveUnknownPathsOnDisk : boolean } ; repl : { dfProcessorHeat : boolean ; quickStats : boolean } ; semantics : { environment : { overwriteBuiltIns : { definitions : (
| { assumePrimitive ?: boolean ; names : ((...)
| (...))
[] ; type : "constant" ; value : unknown ; } | { assumePrimitive ?: boolean ; config : { constructName ?: (...)
| (...)
; readIndices : boolean } ; names : ((...)
| (...))
[] ; suffixes : ((...)
| (...))
[] ; type : "replacement" ; } | { assumePrimitive ?: boolean ; config ?: | { forceFollow ?: ...
; includeFunctionCall ?: ...
; libFn ?: ...
; } | { forceArgs ?: ...
; libFn ?: ...
; treatIndicesAsString : ...
} | { indexOfFunction ?: ...
; libFn ?: ...
; nameOfFunctionArgument ?: ...
; resolveInEnvironment ?: ...
; resolveValue ?: ...
; unquoteFunction ?: ...
; [ key : ...
]: ...
; } | { canBeReplacement ?: ...
; forceArgs ?: ...
; libFn ?: ...
; makeMaybe ?: ...
; mayHaveMoreArgs ?: ...
; modesForFn ?: ...
; quoteSource ?: ...
; superAssignment ?: ...
; swapSourceAndTarget ?: ...
; targetVariable ?: ...
; } | { canBeReplacement ?: ...
; forceArgs ?: ...
; libFn ?: ...
; makeMaybe ?: ...
; mayHaveMoreArgs ?: ...
; modesForFn ?: ...
; quoteSource ?: ...
; source : ...
; superAssignment ?: ...
; swapSourceAndTarget ?: ...
; target : ...
; targetVariable ?: ...
; } | { cfg ?: ...
; forceArgs ?: ...
; hasUnknownSideEffects ?: ...
; libFn ?: ...
; readAllArguments ?: ...
; returnsNthArgument ?: ...
; treatAsFnCall ?: ...
; useAsProcessor ?: ...
; } | { forceArgs ?: ...
; libFn ?: ...
; useAsProcessor ?: ...
} | { includeFunctionCall ?: ...
; libFn ?: ...
} | { args ?: ...
; libFn ?: ...
} | { args : ...
; libFn ?: ...
} | { forceArgs ?: ...
; libFn ?: ...
; quoteArgumentsWithIndex ?: ...
} | { args : ...
; hook : ...
; libFn ?: ...
} | { assignmentOperator ?: ...
; assignRootId ?: ...
; constructName ?: ...
; forceArgs ?: ...
; libFn ?: ...
; makeMaybe ?: ...
; readIndices ?: ...
; } | { args : ...
; inferFromClosure ?: ...
; libFn ?: ...
} | { args : ...
; libFn ?: ...
} | { evalRhsWhen : ...
; forceArgs ?: ...
; lazy : ...
; libFn ?: ...
} | { block : ...
; handlers : ...
; libFn ?: ...
} ; evalHandler ?: string ; names : ((...)
| (...))
[] ; processor : | Access | Apply | Assignment | AssignmentLike | Default | DefaultReadAllArgs | Eval | ExpressionList | ForLoop | FunctionDefinition | Get | IfThenElse | Library | List | Local | Pipe | Quote | Recall | RegisterHook | RepeatLoop | Replacement | Rm | S3Dispatch | S7NewGeneric | S7Dispatch | Source | SpecialBinOp | StopIfNot | Try | Vector | WhileLoop ; type : "function" ; } )
[] ; loadDefaults ?: boolean ; } ; } ; } ; solver : { evalStrings : boolean ; instrument : { dataflowExtractors ?: ( extractor : DataflowProcessors < ParentInformation > , ctx : FlowrAnalyzerContext , ) => DataflowProcessors < ParentInformation > ; } ; resolveSource ?: { applyReplacements ?: { [ key : string ]: string } [] ; dropPaths : DropPathsOption ; ignoreCapitalization : boolean ; inferWorkingDirectory : InferWorkingDirectory ; repeatedSourceLimit ?: number ; searchPath : string [] ; [ key : string ]: unknown ; } ; slicer ?: { threshold ?: number } ; variables : VariableResolve ; } ; [ key : string ]: unknown ; } , ) => void | FlowrConfig , ) : FlowrConfig Parameters config : FlowrConfig amendmentFunc : ( config : { abstractInterpretation : { dataFrame : { maxColNames : number ; readLoadedData : { maxReadLines : number ; readExternalFiles : boolean } ; } ; wideningThreshold : number ; } ; defaultEngine ?: "r-shell" | "tree-sitter" ; engines : ( | { rPath ?: string ; type : "r-shell" ; [ key : string ]: unknown } | { lax ?: boolean ; treeSitterWasmPath ?: string ; type : "tree-sitter" ; wasmPath ?: string ; [ key : string ]: unknown ; } )[] ; ignoreSourceCalls : boolean ; project : { resolveUnknownPathsOnDisk : boolean } ; repl : { dfProcessorHeat : boolean ; quickStats : boolean } ; semantics : { environment : { overwriteBuiltIns : { definitions : ( | { assumePrimitive ?: boolean ; names : ((...) | (...))[] ; type : "constant" ; value : unknown ; } | { assumePrimitive ?: boolean ; config : { constructName ?: (...) | (...); readIndices : boolean } ; names : ((...) | (...))[] ; suffixes : ((...) | (...))[] ; type : "replacement" ; } | { assumePrimitive ?: boolean ; config ?: | { forceFollow ?: ...; includeFunctionCall ?: ...; libFn ?: ...; } | { forceArgs ?: ...; libFn ?: ...; treatIndicesAsString : ... } | { indexOfFunction ?: ...; libFn ?: ...; nameOfFunctionArgument ?: ...; resolveInEnvironment ?: ...; resolveValue ?: ...; unquoteFunction ?: ...; [ key : ...]: ...; } | { canBeReplacement ?: ...; forceArgs ?: ...; libFn ?: ...; makeMaybe ?: ...; mayHaveMoreArgs ?: ...; modesForFn ?: ...; quoteSource ?: ...; superAssignment ?: ...; swapSourceAndTarget ?: ...; targetVariable ?: ...; } | { canBeReplacement ?: ...; forceArgs ?: ...; libFn ?: ...; makeMaybe ?: ...; mayHaveMoreArgs ?: ...; modesForFn ?: ...; quoteSource ?: ...; source : ...; superAssignment ?: ...; swapSourceAndTarget ?: ...; target : ...; targetVariable ?: ...; } | { cfg ?: ...; forceArgs ?: ...; hasUnknownSideEffects ?: ...; libFn ?: ...; readAllArguments ?: ...; returnsNthArgument ?: ...; treatAsFnCall ?: ...; useAsProcessor ?: ...; } | { forceArgs ?: ...; libFn ?: ...; useAsProcessor ?: ... } | { includeFunctionCall ?: ...; libFn ?: ... } | { args ?: ...; libFn ?: ... } | { args : ...; libFn ?: ... } | { forceArgs ?: ...; libFn ?: ...; quoteArgumentsWithIndex ?: ... } | { args : ...; hook : ...; libFn ?: ... } | { assignmentOperator ?: ...; assignRootId ?: ...; constructName ?: ...; forceArgs ?: ...; libFn ?: ...; makeMaybe ?: ...; readIndices ?: ...; } | { args : ...; inferFromClosure ?: ...; libFn ?: ... } | { args : ...; libFn ?: ... } | { evalRhsWhen : ...; forceArgs ?: ...; lazy : ...; libFn ?: ... } | { block : ...; handlers : ...; libFn ?: ... } ; evalHandler ?: string ; names : ((...) | (...))[] ; processor : | Access | Apply | Assignment | AssignmentLike | Default | DefaultReadAllArgs | Eval | ExpressionList | ForLoop | FunctionDefinition | Get | IfThenElse | Library | List | Local | Pipe | Quote | Recall | RegisterHook | RepeatLoop | Replacement | Rm | S3Dispatch | S7NewGeneric | S7Dispatch | Source | SpecialBinOp | StopIfNot | Try | Vector | WhileLoop ; type : "function" ; } )[] ; loadDefaults ?: boolean ; } ; } ; } ; solver : { evalStrings : boolean ; instrument : { dataflowExtractors ?: ( extractor : DataflowProcessors < ParentInformation > , ctx : FlowrAnalyzerContext , ) => DataflowProcessors < ParentInformation > ; } ; resolveSource ?: { applyReplacements ?: { [ key : string ]: string } [] ; dropPaths : DropPathsOption ; ignoreCapitalization : boolean ; inferWorkingDirectory : InferWorkingDirectory ; repeatedSourceLimit ?: number ; searchPath : string [] ; [ key : string ]: unknown ; } ; slicer ?: { threshold ?: number } ; variables : VariableResolve ; } ; [ key : string ]: unknown ; } , ) => void | FlowrConfig clone : functiondefault : functionfromFile : functionfromFile ( configFile ?: string , configWorkingDirectory ?: string ) : FlowrConfig Parameters OptionalconfigFile : string configWorkingDirectory : string = ... getForEngine : functiongetForEngine < T extends "r-shell" | "tree-sitter" > ( config : FlowrConfig , engine : T , ) : undefined | (EngineConfig & { type: T; })
Type Parameters T extends "r-shell" | "tree-sitter" Returns undefined | (EngineConfig & { type: T; }) Readonlyname : "FlowrConfig" parse : functionReadonlySchema : ObjectSchema < any > setInConfig : functionsetInConfigInPlace : function
Helper Object to work with FlowrConfig, provides the default config and the Joi schema for validation.