@eagleoutice/flowr 2.15.9 → 2.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -41
- package/abstract-interpretation/absint-inference.d.ts +2 -2
- package/abstract-interpretation/absint-inference.js +32 -79
- package/abstract-interpretation/data-frame/arguments.js +11 -7
- package/benchmark/slicer.d.ts +0 -1
- package/benchmark/slicer.js +1 -2
- package/cli/repl/commands/repl-signature.js +12 -3
- package/config.d.ts +5 -1
- package/control-flow/cfg-properties.js +0 -22
- package/control-flow/happens-before.d.ts +7 -2
- package/control-flow/happens-before.js +55 -31
- package/control-flow/useless-loop.d.ts +1 -1
- package/control-flow/useless-loop.js +29 -42
- package/dataflow/environments/apply-kill.js +6 -2
- package/dataflow/environments/built-in-config.d.ts +2 -0
- package/dataflow/environments/built-in-props.d.ts +16 -1
- package/dataflow/environments/built-in-props.js +33 -20
- package/dataflow/environments/built-in.d.ts +8 -3
- package/dataflow/environments/built-in.js +52 -82
- package/dataflow/environments/default-builtin-config.d.ts +551 -21
- package/dataflow/environments/default-builtin-config.js +121 -45
- package/dataflow/environments/define.d.ts +3 -2
- package/dataflow/environments/define.js +4 -3
- package/dataflow/environments/deprecation-info.d.ts +45 -0
- package/dataflow/environments/deprecation-info.js +13 -0
- package/dataflow/environments/environment.d.ts +7 -5
- package/dataflow/environments/environment.js +55 -121
- package/dataflow/environments/identifier.d.ts +6 -2
- package/dataflow/environments/identifier.js +23 -69
- package/dataflow/environments/reference-to-maybe.d.ts +9 -0
- package/dataflow/environments/reference-to-maybe.js +23 -51
- package/dataflow/environments/resolve-by-name.js +37 -76
- package/dataflow/eval/resolve/resolve-argument.d.ts +3 -1
- package/dataflow/eval/resolve/resolve-argument.js +61 -64
- package/dataflow/eval/resolve/resolve-working-directory.d.ts +8 -2
- package/dataflow/eval/resolve/resolve-working-directory.js +12 -20
- package/dataflow/eval/resolve/resolve.d.ts +4 -0
- package/dataflow/eval/resolve/resolve.js +23 -14
- package/dataflow/extractor.js +180 -58
- package/dataflow/fn/class-declaration.d.ts +8 -13
- package/dataflow/fn/class-declaration.js +95 -116
- package/dataflow/fn/exceptions-of-function.js +68 -37
- package/dataflow/fn/frame-reflection.d.ts +12 -4
- package/dataflow/fn/frame-reflection.js +51 -41
- package/dataflow/fn/function-props.js +15 -33
- package/dataflow/fn/function-semantics.d.ts +11 -3
- package/dataflow/fn/function-semantics.js +6 -0
- package/dataflow/fn/higher-order-function.d.ts +9 -1
- package/dataflow/fn/higher-order-function.js +27 -24
- package/dataflow/fn/strict-function.d.ts +13 -0
- package/dataflow/fn/strict-function.js +291 -123
- package/dataflow/graph/call-graph.d.ts +7 -6
- package/dataflow/graph/call-graph.js +35 -46
- package/dataflow/graph/graph.d.ts +13 -1
- package/dataflow/graph/graph.js +74 -66
- package/dataflow/graph/vertex.d.ts +1 -1
- package/dataflow/info.d.ts +8 -1
- package/dataflow/info.js +24 -30
- package/dataflow/internal/control-flow.d.ts +31 -4
- package/dataflow/internal/control-flow.js +61 -39
- package/dataflow/internal/linker.d.ts +17 -8
- package/dataflow/internal/linker.js +286 -213
- package/dataflow/internal/process/functions/call/built-in/built-in-ambient-state.d.ts +179 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-ambient-state.js +874 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-apply.d.ts +3 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-apply.js +60 -48
- package/dataflow/internal/process/functions/call/built-in/built-in-assignment.d.ts +4 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-assignment.js +135 -198
- package/dataflow/internal/process/functions/call/built-in/built-in-class-generator.js +7 -9
- package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.d.ts +5 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.js +21 -14
- package/dataflow/internal/process/functions/call/built-in/built-in-eval.js +14 -4
- package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.d.ts +1 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.js +141 -146
- package/dataflow/internal/process/functions/call/built-in/built-in-for-loop.js +56 -24
- package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.js +292 -253
- package/dataflow/internal/process/functions/call/built-in/built-in-get.d.ts +1 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-get.js +30 -32
- package/dataflow/internal/process/functions/call/built-in/built-in-if-then-else.js +68 -67
- package/dataflow/internal/process/functions/call/built-in/built-in-library.js +91 -129
- package/dataflow/internal/process/functions/call/built-in/built-in-local.d.ts +1 -3
- package/dataflow/internal/process/functions/call/built-in/built-in-local.js +16 -12
- package/dataflow/internal/process/functions/call/built-in/built-in-quote.d.ts +4 -4
- package/dataflow/internal/process/functions/call/built-in/built-in-quote.js +9 -35
- package/dataflow/internal/process/functions/call/built-in/built-in-repeat-loop.js +2 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-rm.js +8 -3
- package/dataflow/internal/process/functions/call/built-in/built-in-s-four.d.ts +5 -3
- package/dataflow/internal/process/functions/call/built-in/built-in-s-four.js +13 -31
- package/dataflow/internal/process/functions/call/built-in/built-in-s-seven-new-generic.d.ts +1 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-s-seven-new-generic.js +42 -119
- package/dataflow/internal/process/functions/call/built-in/built-in-s-three-dispatch.d.ts +1 -3
- package/dataflow/internal/process/functions/call/built-in/built-in-s-three-dispatch.js +21 -21
- package/dataflow/internal/process/functions/call/built-in/built-in-source.d.ts +2 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-source.js +93 -102
- package/dataflow/internal/process/functions/call/built-in/built-in-try-catch.d.ts +7 -3
- package/dataflow/internal/process/functions/call/built-in/built-in-try-catch.js +173 -114
- package/dataflow/internal/process/functions/call/built-in/built-in-while-loop.d.ts +1 -3
- package/dataflow/internal/process/functions/call/built-in/built-in-while-loop.js +23 -26
- package/dataflow/internal/process/functions/call/built-in/built-in-with.d.ts +1 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-with.js +34 -9
- package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.d.ts +1 -1
- package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.js +119 -93
- package/dataflow/internal/process/functions/call/common.d.ts +4 -4
- package/dataflow/internal/process/functions/call/common.js +49 -71
- package/dataflow/internal/process/functions/call/deferred.d.ts +12 -2
- package/dataflow/internal/process/functions/call/deferred.js +81 -63
- package/dataflow/internal/process/functions/call/known-call-handling.d.ts +4 -2
- package/dataflow/internal/process/functions/call/known-call-handling.js +65 -68
- package/dataflow/internal/process/functions/call/named-call-handling.d.ts +3 -5
- package/dataflow/internal/process/functions/call/named-call-handling.js +48 -19
- package/dataflow/internal/process/functions/call/quoted.d.ts +2 -0
- package/dataflow/internal/process/functions/call/quoted.js +257 -154
- package/dataflow/internal/process/functions/call/unnamed-call-handling.js +17 -38
- package/dataflow/internal/process/functions/process-parameter.js +25 -32
- package/dataflow/internal/process/process-symbol.js +4 -3
- package/dataflow/internal/program-order.d.ts +26 -0
- package/dataflow/internal/program-order.js +49 -0
- package/documentation/data/faq/faqs.js +3 -3
- package/documentation/data/interface/doc-writing-code.js +1 -2
- package/documentation/data/server/doc-data-server-messages.js +7 -7
- package/documentation/doc-capabilities.js +80 -34
- package/documentation/doc-util/doc-query.d.ts +0 -3
- package/documentation/doc-util/doc-query.js +4 -3
- package/documentation/wiki-analyzer.js +1 -1
- package/documentation/wiki-cfg.js +5 -6
- package/documentation/wiki-core.js +8 -8
- package/documentation/wiki-dataflow-graph.js +10 -11
- package/documentation/wiki-interface.js +2 -2
- package/documentation/wiki-linting-and-testing.js +3 -3
- package/documentation/wiki-overview.js +6 -6
- package/documentation/wiki-query.js +9 -101
- package/documentation/wiki-setup.js +23 -0
- package/documentation/wiki-signature-database.js +1 -1
- package/linter/linter-rules.d.ts +18 -9
- package/linter/rules/absolute-path.js +63 -87
- package/linter/rules/deprecated-functions.d.ts +1 -45
- package/linter/rules/deprecated-functions.js +24 -33
- package/linter/rules/file-path-validity.d.ts +4 -2
- package/linter/rules/file-path-validity.js +114 -80
- package/linter/rules/namespace-access.js +21 -33
- package/linter/rules/naming-convention.d.ts +1 -1
- package/linter/rules/naming-convention.js +60 -48
- package/linter/rules/network-functions.js +11 -7
- package/linter/rules/no-leaked-credentials.js +15 -18
- package/linter/rules/problematic-inputs.d.ts +2 -1
- package/linter/rules/problematic-inputs.js +39 -59
- package/linter/rules/roxygen-arguments.d.ts +9 -4
- package/linter/rules/roxygen-arguments.js +29 -48
- package/linter/rules/seeded-randomness.d.ts +7 -4
- package/linter/rules/seeded-randomness.js +128 -89
- package/linter/rules/stop-with-call-arg.d.ts +4 -2
- package/linter/rules/stop-with-call-arg.js +25 -22
- package/linter/rules/unclosed-connection.js +31 -24
- package/linter/rules/undefined-symbol.d.ts +4 -6
- package/linter/rules/undefined-symbol.js +58 -75
- package/linter/rules/unescaped-arguments.js +18 -44
- package/linter/rules/unused-definition.d.ts +6 -0
- package/linter/rules/unused-definition.js +105 -145
- package/linter/rules/unused-import.d.ts +3 -0
- package/linter/rules/unused-import.js +25 -43
- package/package.json +5 -2
- package/project/flowr-analyzer.d.ts +2 -0
- package/project/flowr-analyzer.js +28 -1
- package/project/plugins/file-plugins/files/flowr-jupyter-file.d.ts +2 -2
- package/project/plugins/file-plugins/files/flowr-jupyter-file.js +8 -12
- package/project/plugins/file-plugins/files/flowr-rda-file.d.ts +0 -2
- package/project/plugins/file-plugins/files/flowr-rda-file.js +10 -55
- package/project/plugins/file-plugins/files/flowr-rmarkdown-file.d.ts +7 -5
- package/project/plugins/file-plugins/files/flowr-rmarkdown-file.js +34 -56
- package/project/plugins/file-plugins/flowr-analyzer-file-plugin.js +2 -1
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-sigdb-plugin.js +22 -45
- package/project/plugins/project-discovery/flowr-analyzer-project-discovery-plugin.js +2 -2
- package/project/sigdb/build.js +4 -0
- package/project/sigdb/manifest.d.ts +2 -0
- package/project/sigdb/manifest.js +10 -1
- package/project/sigdb/reader.js +23 -61
- package/project/sigdb/sigdb-download.d.ts +29 -6
- package/project/sigdb/sigdb-download.js +212 -64
- package/queries/base-query-format.js +1 -2
- package/queries/catalog/absint-query/absint-query-format.js +1 -1
- package/queries/catalog/call-context-query/cascade-action.d.ts +3 -1
- package/queries/catalog/call-context-query/cascade-action.js +2 -0
- package/queries/catalog/call-context-query/identify-link-to-last-call-relation.js +3 -0
- package/queries/catalog/dataflow-query/dataflow-query-executor.js +2 -2
- package/queries/catalog/dataflow-query/dataflow-query-format.d.ts +2 -0
- package/queries/catalog/dataflow-query/dataflow-query-format.js +4 -7
- package/queries/catalog/dependencies-query/dependencies-query-executor.js +50 -114
- package/queries/catalog/dependencies-query/function-info/library-functions.d.ts +5 -9
- package/queries/catalog/dependencies-query/function-info/library-functions.js +6 -0
- package/queries/catalog/dependencies-query/function-info/read-functions.js +1 -1
- package/queries/catalog/dependencies-query/function-info/write-functions.js +7 -3
- package/queries/catalog/input-sources-query/simple-input-classifier.d.ts +4 -4
- package/queries/catalog/input-sources-query/simple-input-classifier.js +192 -301
- package/queries/catalog/inspect-higher-order-query/inspect-higher-order-query-executor.js +2 -1
- package/queries/catalog/origin-query/origin-query-executor.d.ts +1 -1
- package/queries/catalog/origin-query/origin-query-executor.js +2 -2
- package/queries/catalog/origin-query/origin-query-format.d.ts +2 -2
- package/queries/catalog/origin-query/origin-query-format.js +1 -1
- package/queries/query.d.ts +1 -1
- package/r-bridge/data/data.d.ts +21 -14
- package/r-bridge/data/data.js +28 -20
- package/r-bridge/lang-4.x/ast/model/model.d.ts +3 -1
- package/r-bridge/lang-4.x/ast/model/model.js +19 -43
- package/r-bridge/lang-4.x/ast/model/nodes/r-access.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-argument.d.ts +3 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-argument.js +5 -12
- package/r-bridge/lang-4.x/ast/model/nodes/r-binary-op.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-break.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-comment.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-expression-list.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-for-loop.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-function-call.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-function-definition.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-if-then-else.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-line-directive.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-logical.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-next.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-number.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-parameter.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-pipe.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-repeat-loop.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-string.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-symbol.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-unary-op.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-while-loop.d.ts +1 -0
- package/r-bridge/lang-4.x/tree-sitter/tree-sitter-executor.d.ts +2 -2
- package/r-bridge/lang-4.x/tree-sitter/tree-sitter-executor.js +11 -2
- package/r-bridge/roxygen2/roxygen-parse.js +28 -42
- package/r-bridge/shell.js +6 -0
- package/search/search-executor/search-enrichers.js +25 -37
- package/slicing/static/slice-call.d.ts +4 -3
- package/slicing/static/slice-call.js +56 -88
- package/slicing/static/static-slicer.js +115 -79
- package/slicing/static/visiting-queue.d.ts +4 -6
- package/slicing/static/visiting-queue.js +9 -13
- package/util/files.d.ts +2 -0
- package/util/files.js +3 -1
- package/util/mermaid/mermaid.js +6 -2
- package/util/proc.js +2 -1
- package/util/r-base-packages.d.ts +2 -0
- package/util/r-base-packages.js +23 -13
- package/util/text/playground-link.d.ts +12 -3
- package/util/text/playground-link.js +18 -27
- package/util/version.js +4 -10
|
@@ -9,6 +9,7 @@ exports.getDefaultProcessor = getDefaultProcessor;
|
|
|
9
9
|
const function_semantics_1 = require("../fn/function-semantics");
|
|
10
10
|
const identify_link_to_last_call_relation_1 = require("../../queries/catalog/call-context-query/identify-link-to-last-call-relation");
|
|
11
11
|
const type_1 = require("../../r-bridge/lang-4.x/ast/model/type");
|
|
12
|
+
const vertex_1 = require("../graph/vertex");
|
|
12
13
|
const cascade_action_1 = require("../../queries/catalog/call-context-query/cascade-action");
|
|
13
14
|
const unnamed_call_handling_1 = require("../internal/process/functions/call/unnamed-call-handling");
|
|
14
15
|
const hooks_1 = require("../hooks");
|
|
@@ -23,6 +24,8 @@ const r_base_packages_1 = require("../../util/r-base-packages");
|
|
|
23
24
|
const r_base_primitives_generated_1 = require("../../data/r-base-primitives.generated");
|
|
24
25
|
const r_base_packages_generated_1 = require("../../data/r-base-packages.generated");
|
|
25
26
|
const r_value_1 = require("../eval/values/r-value");
|
|
27
|
+
const deprecation_info_1 = require("./deprecation-info");
|
|
28
|
+
const built_in_ambient_state_1 = require("../internal/process/functions/call/built-in/built-in-ambient-state");
|
|
26
29
|
/** Which stack environment an env-returning/-transforming builtin denotes (see {@link StackEnvBuiltins}). */
|
|
27
30
|
var StackEnvKind;
|
|
28
31
|
(function (StackEnvKind) {
|
|
@@ -367,6 +370,15 @@ const RegexConvIn = /[-/\\^$*+?.()|[\]{}]/g;
|
|
|
367
370
|
function toRegex(n) {
|
|
368
371
|
return new RegExp(`^(${Array.from(new Set(n.map(identifier_1.Identifier.getName)), s => s.replaceAll(RegexConvIn, String.raw `\$&`)).filter(s => s.length > 0).join('|')})$`);
|
|
369
372
|
}
|
|
373
|
+
const DeviceClose = ['dev.off', 'graphics.off'];
|
|
374
|
+
/** `dev.off()` closes the active device, `dev.off(which)` maybe another one */
|
|
375
|
+
function closesActiveDevice(target) {
|
|
376
|
+
if (!vertex_1.DfgVertex.isFunctionCall(target)) {
|
|
377
|
+
return false;
|
|
378
|
+
}
|
|
379
|
+
const name = identifier_1.Identifier.getName(target.name);
|
|
380
|
+
return name === 'graphics.off' || (name === 'dev.off' && target.args.length === 0);
|
|
381
|
+
}
|
|
370
382
|
/** what closing or exporting a device links back to: the plot calls that filled it */
|
|
371
383
|
const LinkToLastPlot = {
|
|
372
384
|
type: 'link-to-last-call',
|
|
@@ -378,7 +390,8 @@ const InternalGenerics = [
|
|
|
378
390
|
'c', 'length', 'dim', 'dimnames', 'names', 'max', 'min', 'range', 'sum', 'prod', 'abs', 'sqrt', 'exp',
|
|
379
391
|
'log', 'floor', 'ceiling', 'round', 'signif', 'trunc', 'cumsum', 'cumprod', 'cummax', 'cummin',
|
|
380
392
|
'as.character', 'as.integer', 'as.double', 'as.logical', 'as.complex', 'as.numeric', 'as.raw',
|
|
381
|
-
'is.na', 'is.nan', 'is.finite', 'is.infinite', 'is.matrix', 'is.numeric', 'cbind', 'rbind'
|
|
393
|
+
'is.na', 'is.nan', 'is.finite', 'is.infinite', 'is.matrix', 'is.numeric', 'cbind', 'rbind', 'anyNA', 'as.environment',
|
|
394
|
+
'as.call', 'is.array', 'log2', 'log10', 'rep', 'seq.int', 'xtfrm'
|
|
382
395
|
];
|
|
383
396
|
/**
|
|
384
397
|
* Every name R dispatches on: the generated closure generics plus the {@link InternalGenerics} (no R body, so
|
|
@@ -460,7 +473,7 @@ function appendsToPlot(source, graph) {
|
|
|
460
473
|
? (0, identify_link_to_last_call_relation_1.getValueOfArgument)(graph, vertex, { index: -1, name: 'add' }, [type_1.RType.Logical])?.content === true
|
|
461
474
|
: undefined;
|
|
462
475
|
}
|
|
463
|
-
/** what adding to a plot does
|
|
476
|
+
/** what adding to a plot does */
|
|
464
477
|
const PlotAddonConfig = {
|
|
465
478
|
treatAsFnCall: {
|
|
466
479
|
'facet_grid': ['labeller']
|
|
@@ -480,12 +493,21 @@ const PlotAddonConfig = {
|
|
|
480
493
|
},
|
|
481
494
|
tags: [built_in_props_1.SemanticCallTag.Graphics], sig: [['...', built_in_props_1.ArgProp.Forced]]
|
|
482
495
|
};
|
|
496
|
+
/** the devices withr opens for a scope, as `with_<device>` and `local_<device>` */
|
|
497
|
+
const WithrDevices = ['bmp', 'cairo_pdf', 'cairo_ps', 'jpeg', 'pdf', 'png', 'svg', 'tiff', 'xfig', 'postscript'];
|
|
498
|
+
const ReadGraphicsState = { type: "read-graphics" /* AmbientStateAccessType.ReadGraphics */ };
|
|
499
|
+
const ReadPrintingOptions = { type: "read-options" /* AmbientStateAccessType.ReadOptions */, keys: built_in_ambient_state_1.PrintingOptions };
|
|
500
|
+
/* a method for the printed value may read any option, see {@link AmbientStateAccess} */
|
|
501
|
+
const PrintDispatched = { type: "read-options" /* AmbientStateAccessType.ReadOptions */, keys: built_in_ambient_state_1.PrintingOptions, dispatchOn: 0 };
|
|
502
|
+
const OpenDevice = { type: "open-device" /* AmbientStateAccessType.OpenDevice */ };
|
|
483
503
|
/** what creating a plot does; restated by the deprecated plot creators, which do the same but should not be used */
|
|
484
504
|
const PlotCreateConfig = {
|
|
485
505
|
hasUnknownSideEffects: {
|
|
486
506
|
type: 'link-to-last-call',
|
|
487
507
|
ignoreIf: (source, graph) => appendsToPlot(source, graph) === true,
|
|
488
|
-
callName: toRegex(GraphicDeviceOpen)
|
|
508
|
+
callName: toRegex(GraphicDeviceOpen.concat(DeviceClose)),
|
|
509
|
+
/* a device closed in between is not the one the plot goes to (the graphics state knows which one it is) */
|
|
510
|
+
cascadeIf: (target) => closesActiveDevice(target) ? cascade_action_1.CascadeAction.Block : cascade_action_1.CascadeAction.Stop
|
|
489
511
|
},
|
|
490
512
|
tags: [built_in_props_1.SemanticCallTag.Graphics], sig: [['...', built_in_props_1.ArgProp.Forced]]
|
|
491
513
|
};
|
|
@@ -519,7 +541,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
519
541
|
/* data-masking: the non-data arguments name columns of the (first) data object, not variables */
|
|
520
542
|
{ type: 'function', names: data_masking_functions_1.DataMaskingFunctionIdentifiers, processor: built_in_proc_name_1.BuiltInProcName.Default, config: { markArgsAsMasked: known_call_handling_1.NseArguments.AllButFirst, props: built_in_props_1.CallProp.Pure }, assumePrimitive: false },
|
|
521
543
|
/* slice_sample draws rows at random; registered after the block above, so this definition is the one that sticks */
|
|
522
|
-
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['slice_sample', "dplyr" /* PkgName.Dplyr */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { markArgsAsMasked: known_call_handling_1.NseArguments.AllButFirst, tags: [built_in_props_1.SemanticCallTag.Random] }, assumePrimitive: false },
|
|
544
|
+
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['slice_sample', "dplyr" /* PkgName.Dplyr */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { markArgsAsMasked: known_call_handling_1.NseArguments.AllButFirst, ambient: { type: "draw-rng" /* AmbientStateAccessType.DrawRng */ }, tags: [built_in_props_1.SemanticCallTag.Random] }, assumePrimitive: false },
|
|
523
545
|
/* data-masking without a data argument, e.g. `aes(x, y)` */
|
|
524
546
|
{ type: 'function', names: [...identifier_1.Identifier.fromAll("ggplot2" /* PkgName.GgPlot2 */, ['aes', 'vars']), identifier_1.Identifier.from(['join_by', "dplyr" /* PkgName.Dplyr */]), ...identifier_1.Identifier.fromAllIn(["tibble" /* PkgName.Tibble */, "dplyr" /* PkgName.Dplyr */, "tidyr" /* PkgName.TidyR */], ['tibble', 'tribble'])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { markArgsAsMasked: known_call_handling_1.NseArguments.All }, assumePrimitive: false },
|
|
525
547
|
/* an {@link BuiltInEvalName} marks what the value solver folds; a test checks the names against the handler tables */
|
|
@@ -535,6 +557,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
535
557
|
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['length', 'lengths', 'nrow', 'ncol', 'NROW', 'NCOL', 'dim', 'is.null', 'is.factor', 'is.vector', 'is.matrix', 'is.data.frame', 'is.numeric', 'is.character', 'is.logical', 'is.function', 'is.list', 'is.double', 'is.integer', 'is.complex', 'is.raw', 'is.single', 'is.ordered']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Narrows], sig: SigShape }, assumePrimitive: true },
|
|
536
558
|
/* the names and the class are read off the argument, so whatever it carries can show up in the result */
|
|
537
559
|
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['dimnames', 'names', 'rownames', 'colnames', 'class']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: SigShape }, assumePrimitive: true },
|
|
560
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['structure', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['.Data', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
538
561
|
{ type: 'function', names: [identifier_1.Identifier.from(['nchar', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Narrows], sig: SigShape }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.StringFn },
|
|
539
562
|
{ type: 'function', names: [identifier_1.Identifier.from(['missing', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Presence]] }, assumePrimitive: true },
|
|
540
563
|
/* `hasArg(x)` is `missing()` asked the other way round: it too only looks at whether an argument was supplied */
|
|
@@ -624,10 +647,10 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
624
647
|
/* `seq` dispatches, so `...` really is all it declares; the named formals belong to `seq.default`/`seq.int` */
|
|
625
648
|
{ type: 'function', names: [identifier_1.Identifier.from(['seq', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
626
649
|
/* they open a device that writes the plot to the file they are given, under the name each of them uses */
|
|
627
|
-
{ type: 'function', names: [...identifier_1.Identifier.fromAll("grDevices" /* PkgName.GrDevices */, ['png', 'jpeg', 'bmp', 'tiff', 'svg', 'cairo_pdf']), identifier_1.Identifier.from(['raster_pdf', "rasterpdf" /* PkgName.RasterPdf */]), ...identifier_1.Identifier.fromAll("ragg" /* PkgName.Ragg */, ['agg_png', 'agg_jpeg', 'agg_tiff', 'agg_ppm', 'agg_webp'])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.Graphics, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['filename', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['width', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['height', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
628
|
-
{ type: 'function', names: identifier_1.Identifier.fromAll("grDevices" /* PkgName.GrDevices */, ['pdf', 'postscript', 'xfig', 'bitmap', 'pictex']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.Graphics, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['type', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['height', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['width', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
650
|
+
{ type: 'function', names: [...identifier_1.Identifier.fromAll("grDevices" /* PkgName.GrDevices */, ['png', 'jpeg', 'bmp', 'tiff', 'svg', 'cairo_pdf']), identifier_1.Identifier.from(['raster_pdf', "rasterpdf" /* PkgName.RasterPdf */]), ...identifier_1.Identifier.fromAll("ragg" /* PkgName.Ragg */, ['agg_png', 'agg_jpeg', 'agg_tiff', 'agg_ppm', 'agg_webp'])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { ambient: OpenDevice, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Configures, tags: [built_in_props_1.SemanticCallTag.Graphics, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['filename', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['width', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['height', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
651
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("grDevices" /* PkgName.GrDevices */, ['pdf', 'postscript', 'xfig', 'bitmap', 'pictex']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { ambient: OpenDevice, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Configures, tags: [built_in_props_1.SemanticCallTag.Graphics, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['type', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['height', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['width', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
629
652
|
/* devices that draw on the screen or into memory instead */
|
|
630
|
-
{ type: 'function', names: [...identifier_1.Identifier.fromAll("grDevices" /* PkgName.GrDevices */, ['X11', 'windows', 'quartz', 'dev.new']), identifier_1.Identifier.from(['trellis.device', "lattice" /* PkgName.Lattice */]), ...identifier_1.Identifier.fromAll("magick" /* PkgName.Magick */, ['image_graph', 'image_draw'])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Graphics] }, assumePrimitive: true },
|
|
653
|
+
{ type: 'function', names: [...identifier_1.Identifier.fromAll("grDevices" /* PkgName.GrDevices */, ['X11', 'windows', 'quartz', 'dev.new']), identifier_1.Identifier.from(['trellis.device', "lattice" /* PkgName.Lattice */]), ...identifier_1.Identifier.fromAll("magick" /* PkgName.Magick */, ['image_graph', 'image_draw'])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Configures, ambient: OpenDevice, tags: [built_in_props_1.SemanticCallTag.Graphics] }, assumePrimitive: true },
|
|
631
654
|
{ type: 'function', names: [identifier_1.Identifier.from(['read.csv', "utils" /* PkgName.Utils */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['header', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['sep', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['quote', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['dec', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['fill', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['comment.char', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
632
655
|
{ type: 'function', names: [identifier_1.Identifier.from(['scan', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads, built_in_props_1.SemanticCallTag.User], sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
633
656
|
/* the package functions that read or write a file, each naming the argument that holds the path; the
|
|
@@ -685,6 +708,8 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
685
708
|
{ type: 'function', names: [identifier_1.Identifier.from(['read_sf', "sf" /* PkgName.Sf */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: [['dsn', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
686
709
|
{ type: 'function', names: [identifier_1.Identifier.from(['st_read', "sf" /* PkgName.Sf */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: [['dsn', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
687
710
|
{ type: 'function', names: [identifier_1.Identifier.from(['readOGR', "rgdal" /* PkgName.Rgdal */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: [['dsn', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
711
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['stargazer', "stargazer" /* PkgName.Stargazer */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['out', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
712
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("texreg" /* PkgName.Texreg */, ['htmlreg', 'texreg']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['l', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
688
713
|
{ type: 'function', names: [identifier_1.Identifier.from(['ogrInfo', "rgdal" /* PkgName.Rgdal */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: [['dsn', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
689
714
|
{ type: 'function', names: [identifier_1.Identifier.from(['ogrFIDs', "rgdal" /* PkgName.Rgdal */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: [['dsn', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
690
715
|
{ type: 'function', names: [identifier_1.Identifier.from(['OGRSpatialRef', "rgdal" /* PkgName.Rgdal */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: [['dsn', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
@@ -822,7 +847,8 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
822
847
|
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['file', 'gzfile', 'bzfile', 'xzfile', 'unz', 'fifo']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Opens, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads, built_in_props_1.SemanticCallTag.Writes], sig: [['description', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
823
848
|
{ type: 'function', names: [identifier_1.Identifier.from(['url', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Opens, built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.Reads], sig: [['description', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
824
849
|
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['socketConnection', 'serverSocket']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Opens, built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.Reads], sig: [['host', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
825
|
-
{ type: 'function', names: identifier_1.Identifier.
|
|
850
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['rawConnection', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Opens], sig: [['object', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
851
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['textConnection', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { ambient: { type: "open-text-connection" /* AmbientStateAccessType.OpenTextConnection */ }, tags: [built_in_props_1.SemanticCallTag.Opens], sig: [['object', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
826
852
|
/* the calls that always reach the network, each naming the argument that carries the address; the
|
|
827
853
|
`network-functions` rule reads them back from here rather than keeping a list of its own */
|
|
828
854
|
{ type: 'function', names: identifier_1.Identifier.fromAll("httr" /* PkgName.Httr */, ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', 'BROWSE']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.Reads], sig: [['url', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['config', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
@@ -841,8 +867,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
841
867
|
{ type: 'function', names: [identifier_1.Identifier.from(['getURL', "RCurl" /* PkgName.Rcurl */]), identifier_1.Identifier.from(['getForm', "rBDAT" /* PkgName.Rbdat */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.Reads], sig: [['url', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
842
868
|
{ type: 'function', names: identifier_1.Identifier.fromAll("xml2" /* PkgName.Xml2 */, ['read_html', 'read_xml']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['encoding', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
843
869
|
{ type: 'function', names: identifier_1.Identifier.fromAll("xml2" /* PkgName.Xml2 */, ['download_html', 'download_xml']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['url', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
844
|
-
/*
|
|
845
|
-
{ type: 'function', names: identifier_1.Identifier.fromAll("rvest" /* PkgName.Rvest */, ['html_nodes', 'html_text']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.Reads], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
870
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("rvest" /* PkgName.Rvest */, ['html_nodes', 'html_text']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
846
871
|
{ type: 'function', names: [identifier_1.Identifier.from(['read_html_live', "rvest" /* PkgName.Rvest */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.Reads], sig: [['url', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
847
872
|
{ type: 'function', names: identifier_1.Identifier.fromAll("xfun" /* PkgName.Xfun */, ['url_filename', 'url_accessible', 'url_destination']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
848
873
|
{ type: 'function', names: identifier_1.Identifier.fromAll("googledrive" /* PkgName.GoogleDrive */, ['drive_get', 'drive_download', 'shared_drive_get', 'shared_drive_rm']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.Reads], sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
@@ -858,31 +883,48 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
858
883
|
{ type: 'function', names: [identifier_1.Identifier.from(['copy_to', "dplyr" /* PkgName.Dplyr */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Database, built_in_props_1.SemanticCallTag.Writes], sig: [['dest', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Handle], ['df', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['name', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
859
884
|
{ type: 'function', names: [identifier_1.Identifier.from(['dbConnect', "DBI" /* PkgName.Dbi */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Opens, built_in_props_1.SemanticCallTag.Database] }, assumePrimitive: false },
|
|
860
885
|
/* the calls ending what an opener started, each stating the argument holding the handle */
|
|
861
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['close', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Generic, tags: [built_in_props_1.SemanticCallTag.Closes], sig: [['con', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Handle], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
886
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['close', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Generic, ambient: { type: "write-files" /* AmbientStateAccessType.WriteFiles */ }, tags: [built_in_props_1.SemanticCallTag.Closes], sig: [['con', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Handle], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
887
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['close.connection', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, ambient: { type: "write-files" /* AmbientStateAccessType.WriteFiles */ }, tags: [built_in_props_1.SemanticCallTag.Closes], sig: [['con', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Handle], ['type', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
888
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['flush', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Generic, ambient: { type: "write-files" /* AmbientStateAccessType.WriteFiles */ }, sig: [['con', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Handle]] }, assumePrimitive: false },
|
|
862
889
|
{ type: 'function', names: [identifier_1.Identifier.from(['closeAllConnections', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.Closes] }, assumePrimitive: false },
|
|
863
890
|
{ type: 'function', names: [identifier_1.Identifier.from(['dbDisconnect', "DBI" /* PkgName.Dbi */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { libFn: true, props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.Closes, built_in_props_1.SemanticCallTag.Database], sig: [['conn', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Handle], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
891
|
+
/* withr and rlang change the options, the graphics or the generator state for the code they run, or for the rest of the calling function */
|
|
892
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['with_options', "withr" /* PkgName.Withr */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Configures, scope: { state: 'options', params: ['new', 'code'], new: 'new', code: 'code' } }, assumePrimitive: false },
|
|
893
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['local_options', "withr" /* PkgName.Withr */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Configures | built_in_props_1.CallProp.Invisible, scope: { state: 'options', params: ['.new', '...', '.local_envir'], new: '.new' } }, assumePrimitive: false },
|
|
894
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['with_options', "rlang" /* PkgName.Rlang */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Configures, scope: { state: 'options', params: ['.expr', '...'], code: '.expr' } }, assumePrimitive: false },
|
|
895
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['local_options', "rlang" /* PkgName.Rlang */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Configures | built_in_props_1.CallProp.Invisible, scope: { state: 'options', params: ['...', '.frame'] } }, assumePrimitive: false },
|
|
896
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['with_par', "withr" /* PkgName.Withr */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Configures, scope: { state: 'graphics', params: ['new', 'code', 'no.readonly'], new: 'new', code: 'code' } }, assumePrimitive: false },
|
|
897
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['local_par', "withr" /* PkgName.Withr */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Configures | built_in_props_1.CallProp.Invisible, scope: { state: 'graphics', params: ['.new', '...', 'no.readonly', '.local_envir'], new: '.new' } }, assumePrimitive: false },
|
|
898
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("withr" /* PkgName.Withr */, WithrDevices.map(d => `with_${d}`)), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Configures, scope: { state: 'device', params: ['new', 'code'], code: 'code' } }, assumePrimitive: false },
|
|
899
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("withr" /* PkgName.Withr */, WithrDevices.map(d => `local_${d}`)), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Configures | built_in_props_1.CallProp.Invisible, scope: { state: 'device', params: ['.new', '...', '.local_envir'] } }, assumePrimitive: false },
|
|
900
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['with_seed', "withr" /* PkgName.Withr */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Configures, tags: [built_in_props_1.SemanticCallTag.Random], scope: { state: 'rng', params: ['seed', 'code', '.rng_kind', '.rng_normal_kind', '.rng_sample_kind'], code: 'code' } }, assumePrimitive: false },
|
|
901
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['local_seed', "withr" /* PkgName.Withr */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Configures | built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.Random], scope: { state: 'rng', params: ['seed', '.local_envir', '.rng_kind', '.rng_normal_kind', '.rng_sample_kind'] } }, assumePrimitive: false },
|
|
864
902
|
/* withr closes the connection it is handed when the scope it is called in ends */
|
|
865
903
|
{ type: 'function', names: [identifier_1.Identifier.from(['local_connection', "withr" /* PkgName.Withr */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Closes], sig: [['con', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Handle], ['.local_envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Written]] }, assumePrimitive: false },
|
|
866
904
|
{ type: 'function', names: [identifier_1.Identifier.from(['with_connection', "withr" /* PkgName.Withr */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { libFn: true, props: built_in_props_1.CallProp.MayPure, tags: [built_in_props_1.SemanticCallTag.Closes], sig: [['con', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Handle], ['code', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
867
905
|
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['readLines', 'readBin', 'readChar']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: [['con', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
868
|
-
{ type: 'function', names:
|
|
906
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['readRDS', 'dget']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
869
907
|
{ type: 'function', names: [identifier_1.Identifier.from(['writeLines', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes, built_in_props_1.SemanticCallTag.Prints], sig: [['text', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['con', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
870
908
|
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['writeBin', 'writeChar']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['object', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['con', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
871
909
|
{ type: 'function', names: [identifier_1.Identifier.from(['saveRDS', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['object', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
872
910
|
{ type: 'function', names: [identifier_1.Identifier.from(['save', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['list', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
873
911
|
{ type: 'function', names: [identifier_1.Identifier.from(['save.image', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
912
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['capture.output', "utils" /* PkgName.Utils */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['append', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['type', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['split', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
913
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['file.exists', 'file.size', 'file.info', 'file.mtime']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: [['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
874
914
|
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['dput', 'write']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes, built_in_props_1.SemanticCallTag.Prints], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
875
915
|
{ type: 'function', names: [identifier_1.Identifier.from(['write.dcf', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
876
916
|
{ type: 'function', names: [identifier_1.Identifier.from(['write.table', "utils" /* PkgName.Utils */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
877
917
|
{ type: 'function', names: identifier_1.Identifier.fromAll("utils" /* PkgName.Utils */, ['write.csv', 'write.csv2']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
878
918
|
{ type: 'function', names: identifier_1.Identifier.fromAll("utils" /* PkgName.Utils */, ['read.table', 'read.delim', 'read.csv2', 'read.delim2']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
879
919
|
{ type: 'function', names: [identifier_1.Identifier.from(['download.file', "utils" /* PkgName.Utils */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['url', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['destfile', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
880
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['jitter', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Random], sig: [['x', built_in_props_1.ArgProp.NoDefault], ['factor', 0], ['amount', 0]] }, assumePrimitive: true },
|
|
881
|
-
{ type: 'function', names: [...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['sample', 'sample.int']), ...identifier_1.Identifier.fromAll("stats" /* PkgName.Stats */, ['runif', 'rnorm', 'rbinom', 'rpois', 'rexp', 'rgamma', 'rbeta', 'rcauchy', 'rchisq', 'rgeom', 'rhyper', 'rlnorm', 'rlogis', 'rmultinom', 'rnbinom', 'rsignrank', 'rt', 'rf', 'rweibull', 'rwilcox', 'arima.sim', 'simulate', 'kmeans'])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Random] }, assumePrimitive: false },
|
|
920
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['jitter', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { ambient: { type: "draw-rng" /* AmbientStateAccessType.DrawRng */ }, tags: [built_in_props_1.SemanticCallTag.Random], sig: [['x', built_in_props_1.ArgProp.NoDefault], ['factor', 0], ['amount', 0]] }, assumePrimitive: true },
|
|
921
|
+
{ type: 'function', names: [...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['sample', 'sample.int']), ...identifier_1.Identifier.fromAll("stats" /* PkgName.Stats */, ['runif', 'rnorm', 'rbinom', 'rpois', 'rexp', 'rgamma', 'rbeta', 'rcauchy', 'rchisq', 'rgeom', 'rhyper', 'rlnorm', 'rlogis', 'rmultinom', 'rnbinom', 'rsignrank', 'rt', 'rf', 'rweibull', 'rwilcox', 'arima.sim', 'simulate', 'kmeans'])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { ambient: { type: "draw-rng" /* AmbientStateAccessType.DrawRng */ }, tags: [built_in_props_1.SemanticCallTag.Random] }, assumePrimitive: false },
|
|
882
922
|
{ type: 'function', names: [identifier_1.Identifier.from(['expression', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Lang, sig: [['...', 0]] }, assumePrimitive: true },
|
|
923
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['reg.finalizer', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { ambient: { type: "register-finalizer" /* AmbientStateAccessType.RegisterFinalizer */ }, sig: [['e', built_in_props_1.ArgProp.Forced], ['f', built_in_props_1.ArgProp.Forced], ['onexit', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
924
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['gc', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { ambient: { type: "run-finalizers" /* AmbientStateAccessType.RunFinalizers */ }, sig: [['verbose', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['reset', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['full', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
883
925
|
{ type: 'function', names: [identifier_1.Identifier.from(['rm', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Rm, config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope, sig: [['...', 0], ['list', 0], ['pos', 0], ['envir', 0], ['inherits', 0]] }, assumePrimitive: true },
|
|
884
926
|
/* they read the state they set, so both bits apply */
|
|
885
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['options', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: {
|
|
927
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['options', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { ambient: { type: "set-options" /* AmbientStateAccessType.SetOptions */ }, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Ambient | built_in_props_1.CallProp.Configures, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
886
928
|
/* `Sys.putenv` is defunct in current R, older scripts still use it */
|
|
887
929
|
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['Sys.setenv', 'Sys.unsetenv', 'Sys.setlocale', 'Sys.putenv', 'Sys.setLanguage']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Configures, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
888
930
|
{ type: 'function', names: [identifier_1.Identifier.from(['future', "future" /* PkgName.Future */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Concurrent, sig: [['expr', built_in_props_1.ArgProp.Nse], ['envir', built_in_props_1.ArgProp.Written], ['substitute', built_in_props_1.ArgProp.Flag], ['globals', built_in_props_1.ArgProp.Value], ['packages', built_in_props_1.ArgProp.Value], ['lazy', built_in_props_1.ArgProp.Flag], ['seed', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
@@ -912,30 +954,35 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
912
954
|
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['Find', 'Position']), processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, nameOfFunctionArgument: 'f', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, sig: [['f', built_in_props_1.ArgProp.Callee], ['x', built_in_props_1.ArgProp.Value], ['right', built_in_props_1.ArgProp.Flag], ['nomatch', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
913
955
|
{ type: 'function', names: [identifier_1.Identifier.from(['Reduce', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, nameOfFunctionArgument: 'f', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, sig: [['f', built_in_props_1.ArgProp.Callee]] }, assumePrimitive: false },
|
|
914
956
|
{ type: 'function', names: [identifier_1.Identifier.from(['rapply', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 1, nameOfFunctionArgument: 'f', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, sig: [['object', built_in_props_1.ArgProp.NoDefault], ['f', built_in_props_1.ArgProp.NoDefault], ['classes', 0], ['deflt', 0], ['how', 0], ['...', 0]] }, assumePrimitive: false },
|
|
915
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['print', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { keepArgumentOut: true, hasUnknownSideEffects: { type: 'link-to-last-call', callName: /^sink$/ }, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Generic, tags: [built_in_props_1.SemanticCallTag.Prints], sig: [['x', built_in_props_1.ArgProp.Alias | built_in_props_1.ArgProp.Forced], ['...', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
957
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['print', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { keepArgumentOut: true, hasUnknownSideEffects: { type: 'link-to-last-call', callName: /^sink$/ }, ambient: PrintDispatched, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Generic, tags: [built_in_props_1.SemanticCallTag.Prints], sig: [['x', built_in_props_1.ArgProp.Alias | built_in_props_1.ArgProp.Forced], ['...', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
916
958
|
{ type: 'function', names: [...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['message', 'warning']), identifier_1.Identifier.from(['warn', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['info', "msgr" /* PkgName.Msgr */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { keepArgumentOut: true, hasUnknownSideEffects: { type: 'link-to-last-call', callName: /^sink$/ }, props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.Prints], sig: [['...', built_in_props_1.ArgProp.Alias | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
917
959
|
{ type: 'function', names: [identifier_1.Identifier.from(['invisible', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { keepArgumentOut: true, props: built_in_props_1.CallProp.Pure | built_in_props_1.CallProp.Invisible, sig: [['x', built_in_props_1.ArgProp.Alias | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: true },
|
|
918
960
|
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['force', 'identity']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { keepArgumentOut: true, props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Alias | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
919
961
|
// graphics base
|
|
920
|
-
{ type: 'function', names: namespacePlotFunctions(exports.
|
|
962
|
+
{ type: 'function', names: namespacePlotFunctions(exports.GraphicsPlotCreate.concat(exports.TinyPlotCrate)), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { ...PlotCreateConfig, ambient: ReadGraphicsState }, assumePrimitive: true },
|
|
963
|
+
/* grid-based plots ignore the base graphics parameters */
|
|
964
|
+
{ type: 'function', names: namespacePlotFunctions(exports.GgPlotCreate), processor: built_in_proc_name_1.BuiltInProcName.Default, config: PlotCreateConfig, assumePrimitive: true },
|
|
921
965
|
/* `qplot` creates a plot like the ones above and is deprecated on top of it; registered after them so this
|
|
922
966
|
definition is the one that sticks */
|
|
923
967
|
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['qplot', "ggplot2" /* PkgName.GgPlot2 */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { ...PlotCreateConfig, tags: [built_in_props_1.SemanticCallTag.Graphics, built_in_props_1.SemanticCallTag.Deprecated] }, assumePrimitive: true },
|
|
924
968
|
// graphics addons
|
|
925
|
-
{ overrides: true, type: 'function', names: namespacePlotFunctions(
|
|
926
|
-
|
|
927
|
-
{ overrides: true, type: 'function', names: identifier_1.Identifier.fromAll("ggplot2" /* PkgName.GgPlot2 */, ['coord_map', 'coord_flip', 'annotation_logticks']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { ...PlotAddonConfig, tags: [built_in_props_1.SemanticCallTag.Graphics, built_in_props_1.SemanticCallTag.Deprecated] }, assumePrimitive: true },
|
|
969
|
+
{ overrides: true, type: 'function', names: namespacePlotFunctions(exports.GraphicsPlotAddons.concat(...exports.PlotFunctionsWithAddParam)), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { ...PlotAddonConfig, ambient: ReadGraphicsState }, assumePrimitive: true },
|
|
970
|
+
{ type: 'function', names: namespacePlotFunctions(exports.GgPlotImplicitAddons), processor: built_in_proc_name_1.BuiltInProcName.Default, config: PlotAddonConfig, assumePrimitive: true },
|
|
928
971
|
// plot tags
|
|
929
972
|
{ type: 'function', names: namespacePlotFunctions(exports.GgPlotAddons), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, hasUnknownSideEffects: { type: 'link-to-last-call', callName: toRegex(exports.GgPlotCreate.concat(exports.GgPlotAddons)) }, tags: [built_in_props_1.SemanticCallTag.Graphics], sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: true },
|
|
930
973
|
{ type: 'function', names: namespacePlotFunctions(exports.TinyPlotAddons), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, hasUnknownSideEffects: { type: 'link-to-last-call', callName: toRegex([...exports.TinyPlotCrate, ...exports.TinyPlotAddons]) }, tags: [built_in_props_1.SemanticCallTag.Graphics], sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: true },
|
|
931
974
|
{ type: 'function', names: [...identifier_1.Identifier.fromAll("magick" /* PkgName.Magick */, ['image_capture']), ...identifier_1.Identifier.fromAll("grDevices" /* PkgName.GrDevices */, ['dev.capture'])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, hasUnknownSideEffects: LinkToLastPlot, tags: [built_in_props_1.SemanticCallTag.Graphics], sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: true },
|
|
932
975
|
/* they put what the device holds on disk */
|
|
933
976
|
{ type: 'function', names: [identifier_1.Identifier.from(['image_write', "magick" /* PkgName.Magick */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, hasUnknownSideEffects: LinkToLastPlot, tags: [built_in_props_1.SemanticCallTag.Graphics, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['image', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['path', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: true },
|
|
934
|
-
{ type: 'function', names: identifier_1.Identifier.fromAll("grDevices" /* PkgName.GrDevices */, ['dev.off'
|
|
977
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("grDevices" /* PkgName.GrDevices */, ['dev.off']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Configures, libFn: true, ambient: { type: "close-device" /* AmbientStateAccessType.CloseDevice */ }, hasUnknownSideEffects: LinkToLastPlot, tags: [built_in_props_1.SemanticCallTag.Graphics, built_in_props_1.SemanticCallTag.Closes, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: true },
|
|
978
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("grDevices" /* PkgName.GrDevices */, ['graphics.off']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Configures, libFn: true, ambient: { type: "close-device" /* AmbientStateAccessType.CloseDevice */, all: true }, hasUnknownSideEffects: LinkToLastPlot, tags: [built_in_props_1.SemanticCallTag.Graphics, built_in_props_1.SemanticCallTag.Closes, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: true },
|
|
979
|
+
/* switching the active device makes its graphics state the one in effect */
|
|
980
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("grDevices" /* PkgName.GrDevices */, ['dev.set', 'dev.next', 'dev.prev']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Configures, libFn: true, ambient: { type: "switch-device" /* AmbientStateAccessType.SwitchDevice */ }, tags: [built_in_props_1.SemanticCallTag.Graphics], sig: [['which', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
935
981
|
{ type: 'function', names: ['('], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { keepArgumentOut: true, props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Alias]] }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Group },
|
|
936
982
|
{ type: 'function', names: [identifier_1.Identifier.from(['load_all', "pkgload" /* PkgName.PkgLoad */]), identifier_1.Identifier.from(['load_all', "devtools" /* PkgName.Devtools */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Scope, sig: [['path', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
937
983
|
{ type: 'function', names: [identifier_1.Identifier.from(['setwd', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Ambient | built_in_props_1.CallProp.Configures, sig: [['dir', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
938
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['set.seed', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: {
|
|
984
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['set.seed', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { ambient: { type: "set-rng" /* AmbientStateAccessType.SetRng */ }, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Configures, tags: [built_in_props_1.SemanticCallTag.Random], sig: [['seed', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced], ['kind', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced], ['normal.kind', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced], ['sample.kind', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
985
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['RNGkind', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { ambient: { type: "set-rng" /* AmbientStateAccessType.SetRng */, kindFrom: 0 }, props: built_in_props_1.CallProp.Configures, tags: [built_in_props_1.SemanticCallTag.Random], sig: [['kind', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced], ['normal.kind', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced], ['sample.kind', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
939
986
|
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['body', 'formals']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Lang, sig: [['fun', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: true },
|
|
940
987
|
/* `environment()` without an argument is the frame the call sits in, which is how `as.list(environment())` gets at every argument */
|
|
941
988
|
{ type: 'function', names: [identifier_1.Identifier.from(['environment', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, frame: built_in_props_1.ArgProp.Value, sig: [['fun', built_in_props_1.ArgProp.Handle | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: true },
|
|
@@ -960,7 +1007,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
960
1007
|
},
|
|
961
1008
|
{ type: 'function', names: [identifier_1.Identifier.from(['eval', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Eval, config: { includeFunctionCall: true, supportFunctionCall: false, keepEnvironment: true, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['expr', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['enclos', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
962
1009
|
{ type: 'function', names: [identifier_1.Identifier.from(['evalText', "SoDA" /* PkgName.Soda */]), identifier_1.Identifier.from(['evalText', "FastUtils" /* PkgName.FastUtils */])], processor: built_in_proc_name_1.BuiltInProcName.Eval, config: { includeFunctionCall: true, supportFunctionCall: true, keepEnvironment: true, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['text', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
963
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['cat', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: { type: 'link-to-last-call', callName: /^sink$/ }, props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes, built_in_props_1.SemanticCallTag.Prints], sig: [['...', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced], ['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
1010
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['cat', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: { type: 'link-to-last-call', callName: /^sink$/ }, ambient: ReadPrintingOptions, props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes, built_in_props_1.SemanticCallTag.Prints], sig: [['...', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced], ['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
964
1011
|
{ type: 'function', names: [identifier_1.Identifier.from(['switch', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { alternativeArgsFrom: 1, useAsProcessor: built_in_proc_name_1.BuiltInProcName.Switch, props: built_in_props_1.CallProp.Pure, sig: [['EXPR', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
965
1012
|
{ type: 'function', names: ['return'], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { cfg: 1 /* ExitPointType.Return */, keepArgumentOut: true, useAsProcessor: built_in_proc_name_1.BuiltInProcName.Return, props: built_in_props_1.CallProp.Pure, sig: [['value', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Alias]] }, assumePrimitive: true },
|
|
966
1013
|
{
|
|
@@ -979,6 +1026,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
979
1026
|
{ type: 'function', names: [identifier_1.Identifier.from(['try', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Try, config: { block: 'expr', handlers: {}, sig: [['expr', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: true },
|
|
980
1027
|
{ type: 'function', names: [identifier_1.Identifier.from(['tryCatch', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['tryCatchLog', "tryCatchLog" /* PkgName.TryCatchLog */])], processor: built_in_proc_name_1.BuiltInProcName.Try, config: { block: 'expr', handlers: { error: 'error', finally: 'finally' }, sig: [['expr', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced], ['...', built_in_props_1.ArgProp.Callee], ['finally', built_in_props_1.ArgProp.Nse]] }, assumePrimitive: true },
|
|
981
1028
|
{ type: 'function', names: [identifier_1.Identifier.from(['withCallingHandlers', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Try, config: { block: 'expr', aborts: false, handlers: {}, sig: [['expr', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced], ['...', built_in_props_1.ArgProp.Callee]] }, assumePrimitive: true },
|
|
1029
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['invokeRestart', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { sig: [['r', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced], ['...', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: true },
|
|
982
1030
|
{ type: 'function', names: [identifier_1.Identifier.from(['stopifnot', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['assert_that', "assertthat" /* PkgName.AssertThat */])], processor: built_in_proc_name_1.BuiltInProcName.StopIfNot, config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Throws, sig: [['...', 0], ['exprs', built_in_props_1.ArgProp.NoDefault], ['exprObject', built_in_props_1.ArgProp.NoDefault], ['local', 0]] }, assumePrimitive: false },
|
|
983
1031
|
{ type: 'function', names: ['break'], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { useAsProcessor: built_in_proc_name_1.BuiltInProcName.Break, cfg: 2 /* ExitPointType.Break */ }, assumePrimitive: false },
|
|
984
1032
|
{ type: 'function', names: ['next'], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { cfg: 3 /* ExitPointType.Next */ }, assumePrimitive: false },
|
|
@@ -1005,11 +1053,18 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1005
1053
|
{ type: 'function', names: [identifier_1.Identifier.from(['mget', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Get, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['mode', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['ifnotfound', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['inherits', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1006
1054
|
{ type: 'function', names: [identifier_1.Identifier.from(['exists', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Get, config: { returnsValue: false, props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['where', built_in_props_1.ArgProp.Flag], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['frame', built_in_props_1.ArgProp.Flag], ['mode', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['inherits', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1007
1055
|
{ type: 'function', names: [identifier_1.Identifier.from(['match.fun', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Get, evalHandler: built_in_eval_name_1.BuiltInEvalName.Get, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['FUN', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['descend', built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1008
|
-
|
|
1009
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['
|
|
1010
|
-
|
|
1011
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['
|
|
1012
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['
|
|
1056
|
+
/* what a call does to a package is stated by its tags: loading the namespace, attaching it, answering whether it is there */
|
|
1057
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['library', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Library, config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope, tags: [built_in_props_1.SemanticCallTag.LoadsPackage, built_in_props_1.SemanticCallTag.AttachesPackage], sig: [['package', built_in_props_1.ArgProp.NoDefault], ['...', 0]] }, assumePrimitive: false },
|
|
1058
|
+
/* `require` attaches like `library`, but answers FALSE instead of failing when the package is missing */
|
|
1059
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['require', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Library, config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope, tags: [built_in_props_1.SemanticCallTag.LoadsPackage, built_in_props_1.SemanticCallTag.AttachesPackage, built_in_props_1.SemanticCallTag.ChecksPackage], sig: [['package', built_in_props_1.ArgProp.NoDefault], ['...', 0]] }, assumePrimitive: false },
|
|
1060
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['attachNamespace', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Library, config: { characterOnly: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope, tags: [built_in_props_1.SemanticCallTag.LoadsPackage, built_in_props_1.SemanticCallTag.AttachesPackage], sig: [['ns', built_in_props_1.ArgProp.NoDefault], ['pos', 0], ['depends', 0], ['exclude', built_in_props_1.ArgProp.NoDefault], ['include.only', built_in_props_1.ArgProp.NoDefault]] }, assumePrimitive: false },
|
|
1061
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['requireNamespace', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Library, config: { namespaceOnly: true, characterOnly: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope, tags: [built_in_props_1.SemanticCallTag.LoadsPackage, built_in_props_1.SemanticCallTag.ChecksPackage], sig: [['package', built_in_props_1.ArgProp.NoDefault], ['...', 0]] }, assumePrimitive: false },
|
|
1062
|
+
/* other than `requireNamespace`, it hands back the namespace visibly */
|
|
1063
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['loadNamespace', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Library, config: { namespaceOnly: true, characterOnly: true, props: built_in_props_1.CallProp.Scope, tags: [built_in_props_1.SemanticCallTag.LoadsPackage], sig: [['package', built_in_props_1.ArgProp.NoDefault], ['...', 0]] }, assumePrimitive: false },
|
|
1064
|
+
/* they only look whether a package is installed, nothing is loaded */
|
|
1065
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['find.package', "base" /* PkgName.Base */]), ...identifier_1.Identifier.fromAll("utils" /* PkgName.Utils */, ['installed.packages', 'packageVersion', 'packageDescription'])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Ambient, tags: [built_in_props_1.SemanticCallTag.ChecksPackage], sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1066
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['from', "import" /* PkgName.Import */])], processor: built_in_proc_name_1.BuiltInProcName.Library, config: { fromImports: true, props: built_in_props_1.CallProp.Scope, tags: [built_in_props_1.SemanticCallTag.LoadsPackage, built_in_props_1.SemanticCallTag.AttachesPackage] }, assumePrimitive: false },
|
|
1067
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['use', "box" /* PkgName.Box */]), identifier_1.Identifier.from(['use', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Library, config: { boxUse: true, props: built_in_props_1.CallProp.Scope, tags: [built_in_props_1.SemanticCallTag.LoadsPackage, built_in_props_1.SemanticCallTag.AttachesPackage], sig: [['package', built_in_props_1.ArgProp.NoDefault], ['include.only', built_in_props_1.ArgProp.NoDefault]] }, assumePrimitive: false },
|
|
1013
1068
|
{ type: 'function', names: ['<-', '='], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { canBeReplacement: true, props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Invisible, sig: [['x', built_in_props_1.ArgProp.NoDefault], ['value', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Alias]] }, assumePrimitive: true },
|
|
1014
1069
|
{ type: 'function', names: [identifier_1.Identifier.from([':=', "data.table" /* PkgName.DataTable */])], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope }, assumePrimitive: true },
|
|
1015
1070
|
{ type: 'function', names: [identifier_1.Identifier.from(['assign', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { targetVariable: true, mayHaveMoreArgs: true, environmentArg: 'envir', props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Invisible, sig: [['x', built_in_props_1.ArgProp.Value], ['value', built_in_props_1.ArgProp.Value], ['pos', built_in_props_1.ArgProp.Flag], ['envir', built_in_props_1.ArgProp.Written], ['inherits', built_in_props_1.ArgProp.Flag]] }, assumePrimitive: true },
|
|
@@ -1036,12 +1091,19 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1036
1091
|
genericArg: { idx: 0, name: 'f' },
|
|
1037
1092
|
classArgs: [{ idx: 1, name: 'signature' }], sig: [['f', built_in_props_1.ArgProp.NoDefault], ['signature', 0], ['definition', built_in_props_1.ArgProp.NoDefault], ['where', 0], ['valueClass', 0], ['sealed', 0]]
|
|
1038
1093
|
}, assumePrimitive: true },
|
|
1094
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['setReplaceMethod', "methods" /* PkgName.Methods */])],
|
|
1095
|
+
processor: built_in_proc_name_1.BuiltInProcName.ClassRelation,
|
|
1096
|
+
config: {
|
|
1097
|
+
assignmentLike: { targetVariable: true, canBeReplacement: false, targetSuffix: '<-', target: { idx: 0, name: 'f' }, source: { idx: 2, name: 'definition' }, modesForFn: ['s4'] },
|
|
1098
|
+
genericArg: { idx: 0, name: 'f' }, genericSuffix: '<-',
|
|
1099
|
+
classArgs: [{ idx: 1, name: 'signature' }], sig: [['f', built_in_props_1.ArgProp.NoDefault], ['signature', 0], ['definition', built_in_props_1.ArgProp.NoDefault], ['where', 0], ['valueClass', 0], ['sealed', 0]]
|
|
1100
|
+
}, assumePrimitive: true },
|
|
1039
1101
|
{ type: 'function', names: [identifier_1.Identifier.from(['makeActiveBinding', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { targetVariable: true, mayHaveMoreArgs: true, callsSource: true, environmentArg: 'env', props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Invisible, sig: [['sym', built_in_props_1.ArgProp.Value], ['fun', built_in_props_1.ArgProp.Callee], ['env', built_in_props_1.ArgProp.Written]] }, assumePrimitive: true },
|
|
1040
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['delayedAssign', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { quoteSource: true, targetVariable: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope, sig: [['x', built_in_props_1.ArgProp.NoDefault], ['value', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Nse], ['eval.env',
|
|
1102
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['delayedAssign', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { keepEnvironment: true, quoteSource: true, targetVariable: true, mayHaveMoreArgs: true, environmentArg: 'assign.env', props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope, sig: [['x', built_in_props_1.ArgProp.NoDefault], ['value', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Nse], ['eval.env', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['assign.env', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Written]] }, assumePrimitive: true },
|
|
1041
1103
|
{ type: 'function', names: ['<<-'], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { superAssignment: true, canBeReplacement: true, props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Invisible, sig: [['x', built_in_props_1.ArgProp.NoDefault], ['value', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Alias]] }, assumePrimitive: true },
|
|
1042
1104
|
{ type: 'function', names: ['->'], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { swapSourceAndTarget: true, canBeReplacement: true, props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Invisible, sig: [['value', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Alias], ['x', built_in_props_1.ArgProp.NoDefault]] }, assumePrimitive: true },
|
|
1043
1105
|
{ type: 'function', names: ['->>'], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { superAssignment: true, swapSourceAndTarget: true, canBeReplacement: true, props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Invisible, sig: [['value', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Alias], ['x', built_in_props_1.ArgProp.NoDefault]] }, assumePrimitive: true },
|
|
1044
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['data', "utils" /* PkgName.Utils */]), identifier_1.Identifier.from(['getHdata', "Hmisc" /* PkgName.Hmisc */])], processor: built_in_proc_name_1.BuiltInProcName.DefineArgument, config: { superAssignment: true, sig: [['...', 0], ['list',
|
|
1106
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['data', "utils" /* PkgName.Utils */]), identifier_1.Identifier.from(['getHdata', "Hmisc" /* PkgName.Hmisc */])], processor: built_in_proc_name_1.BuiltInProcName.DefineArgument, config: { superAssignment: true, sig: [['...', 0], ['list', built_in_props_1.ArgProp.Value], ['package', 0], ['lib.loc', 0], ['verbose', 0], ['envir', 0], ['overwrite', 0]] }, assumePrimitive: false },
|
|
1045
1107
|
/* only `&&`/`||` short-circuit */
|
|
1046
1108
|
{ type: 'function', names: [identifier_1.Identifier.from(['&&', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.SpecialBinOp, config: { lazy: true, evalRhsWhen: true, props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Atomic], ['y', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Atomic]] }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Logical },
|
|
1047
1109
|
{ type: 'function', names: [identifier_1.Identifier.from(['||', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.SpecialBinOp, config: { lazy: true, evalRhsWhen: false, props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Atomic], ['y', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Atomic]] }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Logical },
|
|
@@ -1080,7 +1142,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1080
1142
|
{ type: 'function', names: identifier_1.Identifier.fromAll("purrr" /* PkgName.Purrr */, ['invoke', 'invoke_map']), processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, nameOfFunctionArgument: '.f', unquoteFunction: true, hasUnknownSideEffects: true, libFn: true, props: built_in_props_1.CallProp.MayPure, tags: [built_in_props_1.SemanticCallTag.Deprecated], sig: [['.f', built_in_props_1.ArgProp.Callee], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1081
1143
|
{ type: 'function', names: [...identifier_1.Identifier.fromAll("glue" /* PkgName.Glue */, ['glue', 'glue_safe', 'glue_collapse']), identifier_1.Identifier.from(['str_glue', "stringr" /* PkgName.Stringr */])], processor: built_in_proc_name_1.BuiltInProcName.StringTemplate, config: { props: built_in_props_1.CallProp.MayPure }, assumePrimitive: false },
|
|
1082
1144
|
{ type: 'function', names: identifier_1.Identifier.fromAll("cli" /* PkgName.Cli */, ['cli_text', 'cli_alert', 'cli_alert_info', 'cli_alert_success', 'cli_alert_warning', 'cli_alert_danger', 'cli_h1', 'cli_h2', 'cli_h3', 'cli_li', 'cli_bullets', 'cli_inform', 'cli_warn', 'format_inline', 'cli_verbatim']), processor: built_in_proc_name_1.BuiltInProcName.StringTemplate, config: { markup: true, props: built_in_props_1.CallProp.MayPure }, assumePrimitive: false },
|
|
1083
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['str_interp', "stringr" /* PkgName.Stringr */])], processor: built_in_proc_name_1.BuiltInProcName.StringTemplate, config: { open: '${', props: built_in_props_1.CallProp.MayPure
|
|
1145
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['str_interp', "stringr" /* PkgName.Stringr */])], processor: built_in_proc_name_1.BuiltInProcName.StringTemplate, config: { open: '${', props: built_in_props_1.CallProp.MayPure }, assumePrimitive: false },
|
|
1084
1146
|
{ type: 'function', names: [identifier_1.Identifier.from(['gstring', "R.utils" /* PkgName.Rutils */])], processor: built_in_proc_name_1.BuiltInProcName.StringTemplate, config: { open: '${', props: built_in_props_1.CallProp.MayPure }, assumePrimitive: false },
|
|
1085
1147
|
{ type: 'function', names: identifier_1.Identifier.fromAll("wrapr" /* PkgName.Wrapr */, ['sinterp', 'si']), processor: built_in_proc_name_1.BuiltInProcName.StringTemplate, config: { open: '.(', close: ')', props: built_in_props_1.CallProp.MayPure }, assumePrimitive: false },
|
|
1086
1148
|
{ type: 'function', names: identifier_1.Identifier.fromAll("stringmagic" /* PkgName.Stringmagic */, ['string_magic', '.string_magic', 'sma']), processor: built_in_proc_name_1.BuiltInProcName.StringTemplate, config: { props: built_in_props_1.CallProp.MayPure }, assumePrimitive: false },
|
|
@@ -1180,9 +1242,13 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1180
1242
|
},
|
|
1181
1243
|
/* they create, move, or delete files */
|
|
1182
1244
|
{ type: 'function', names: [identifier_1.Identifier.from(['dir.create', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['dir_create', "fs" /* PkgName.Fs */]), ...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['Sys.chmod', 'unlink', 'file.remove', 'file.rename', 'file.copy', 'file.link', 'file.append', 'Sys.junction'])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes] }, assumePrimitive: false },
|
|
1183
|
-
/* `sink` diverts the output, `par`/`tpar` set the parameters of the current device */
|
|
1245
|
+
/* `sink` diverts the output, `par`/`tpar` set (or query) the parameters of the current device */
|
|
1184
1246
|
{ type: 'function', names: [identifier_1.Identifier.from(['sink', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['file', built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
1185
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['par', "graphics" /* PkgName.Graphics */]), identifier_1.Identifier.from(['tpar', "tinyplot" /* PkgName.TinyPlot */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: {
|
|
1247
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['par', "graphics" /* PkgName.Graphics */]), identifier_1.Identifier.from(['tpar', "tinyplot" /* PkgName.TinyPlot */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Configures, ambient: { type: "set-graphics" /* AmbientStateAccessType.SetGraphics */, queryOnUnnamedStrings: true, queryLinksTo: LinkToLastPlot }, tags: [built_in_props_1.SemanticCallTag.Graphics], sig: [['...', 0], ['no.readonly', 0]] }, assumePrimitive: false },
|
|
1248
|
+
/* they arrange the device or change its colors, which every later plot on it picks up */
|
|
1249
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("graphics" /* PkgName.Graphics */, ['layout', 'split.screen', 'screen', 'close.screen']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Configures, ambient: { type: "set-graphics" /* AmbientStateAccessType.SetGraphics */ }, tags: [built_in_props_1.SemanticCallTag.Graphics], sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1250
|
+
/* the palette, other than the parameters above, is shared by all devices */
|
|
1251
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['palette', "grDevices" /* PkgName.GrDevices */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Configures, ambient: { type: "set-palette" /* AmbientStateAccessType.SetPalette */ }, tags: [built_in_props_1.SemanticCallTag.Graphics], sig: [['value', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1186
1252
|
{
|
|
1187
1253
|
type: 'function',
|
|
1188
1254
|
names: [
|
|
@@ -1225,7 +1291,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1225
1291
|
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['nargs', 'sys.nframe']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Lang, frame: built_in_props_1.ArgProp.Presence, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1226
1292
|
/* `alist` keeps its arguments unevaluated, `evalq` evaluates its first one in another frame */
|
|
1227
1293
|
{ type: 'function', names: [identifier_1.Identifier.from(['alist', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Lang, sig: [['...', built_in_props_1.ArgProp.Nse]] }, assumePrimitive: false },
|
|
1228
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['evalq', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Lang, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['expr', built_in_props_1.ArgProp.Nse | built_in_props_1.ArgProp.Injectable], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1294
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['evalq', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { ambient: { type: "evaluate-quoted" /* AmbientStateAccessType.EvaluateQuoted */ }, props: built_in_props_1.CallProp.Lang, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['expr', built_in_props_1.ArgProp.Nse | built_in_props_1.ArgProp.Injectable], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1229
1295
|
{ type: 'function', names: [identifier_1.Identifier.from(['eval.parent', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Eval, config: { includeFunctionCall: true, supportFunctionCall: false, keepEnvironment: false, parameterNames: ['expr', 'n'], parentFrame: true, props: built_in_props_1.CallProp.Lang, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['expr', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['n', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1230
1296
|
{ type: 'function', names: [identifier_1.Identifier.from(['eval_tidy', "rlang" /* PkgName.Rlang */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Lang, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['expr', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['data', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['env', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1231
1297
|
{ type: 'function', names: [identifier_1.Identifier.from(['eval_bare', "rlang" /* PkgName.Rlang */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Lang, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['expr', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['env', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
@@ -1234,7 +1300,8 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1234
1300
|
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['dyn.load', 'getNativeSymbolInfo']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Ffi, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1235
1301
|
{ type: 'function', names: [identifier_1.Identifier.from(['sourceCpp', "Rcpp" /* PkgName.Rcpp */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Ffi, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
1236
1302
|
/* ambient state: options, environment variables, the clock, the session itself */
|
|
1237
|
-
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['
|
|
1303
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['Sys.getenv', 'Sys.info', 'Sys.getpid', 'getwd', 'getRversion', 'R.Version', 'Sys.time', 'Sys.Date', 'Sys.timezone', 'date', 'proc.time', 'interactive']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Ambient, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1304
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['getOption', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { ambient: { type: "get-option" /* AmbientStateAccessType.GetOption */ }, props: built_in_props_1.CallProp.Ambient, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1238
1305
|
{ type: 'function', names: [identifier_1.Identifier.from(['commandArgs', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Ambient, tags: [built_in_props_1.SemanticCallTag.CommandLine], sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1239
1306
|
/* system commands */
|
|
1240
1307
|
{ type: 'function', names: [identifier_1.Identifier.from(['system', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { tags: [built_in_props_1.SemanticCallTag.Process], sig: [['command', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['intern', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['ignore.stdout', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['ignore.stderr', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['wait', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['input', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['show.output.on.console', built_in_props_1.ArgProp.Flag], ['minimized', built_in_props_1.ArgProp.Flag], ['invisible', built_in_props_1.ArgProp.Flag], ['timeout', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
@@ -1242,7 +1309,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1242
1309
|
{ type: 'function', names: [identifier_1.Identifier.from(['shell', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { tags: [built_in_props_1.SemanticCallTag.Process], sig: [['cmd', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['shell', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['flag', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['intern', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['wait', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['translate', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['mustWork', built_in_props_1.ArgProp.Flag], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1243
1310
|
{ type: 'function', names: [identifier_1.Identifier.from(['shell.exec', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { tags: [built_in_props_1.SemanticCallTag.Process], sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource | built_in_props_1.ArgProp.Injectable]] }, assumePrimitive: false },
|
|
1244
1311
|
{ type: 'function', names: [identifier_1.Identifier.from(['pipe', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { tags: [built_in_props_1.SemanticCallTag.Opens, built_in_props_1.SemanticCallTag.Process], sig: [['description', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource | built_in_props_1.ArgProp.Injectable], ['open', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['encoding', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1245
|
-
{ type: 'function', names: identifier_1.Identifier.fromAll("processx" /* PkgName.Processx */, ['run', 'process']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Process], sig: [['command', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['args', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value
|
|
1312
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("processx" /* PkgName.Processx */, ['run', 'process']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Process], sig: [['command', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['args', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1246
1313
|
{ type: 'function', names: identifier_1.Identifier.fromAll("sys" /* PkgName.Sys */, ['exec_wait', 'exec_internal', 'exec_background']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Process], sig: [['cmd', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['args', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable]] }, assumePrimitive: false },
|
|
1247
1314
|
{ type: 'function', names: identifier_1.Identifier.fromAll("DBI" /* PkgName.Dbi */, ['dbGetQuery', 'dbSendQuery', 'dbSendStatement', 'dbExecute']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Database], sig: [['conn', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Handle], ['statement', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1248
1315
|
{ type: 'function', names: [identifier_1.Identifier.from(['sqldf', "sqldf" /* PkgName.Sqldf */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Database], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['stringsAsFactors', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['row.names', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['method', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
@@ -1286,7 +1353,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1286
1353
|
/* the string and shape functions R declares formals for, restated one by one: the group above gives them
|
|
1287
1354
|
what they do, this gives them the arguments they do it with (the names are R's own) */
|
|
1288
1355
|
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['sprintf', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['fmt', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
1289
|
-
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['format', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: SigXDots }, assumePrimitive: true },
|
|
1356
|
+
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['format', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { ambient: PrintDispatched, props: built_in_props_1.CallProp.Pure, sig: SigXDots }, assumePrimitive: true },
|
|
1290
1357
|
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['grep', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['pattern', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['ignore.case', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['perl', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['value', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['fixed', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['useBytes', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['invert', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: true },
|
|
1291
1358
|
{ overrides: true, type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['sub', 'gsub']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['pattern', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['replacement', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['ignore.case', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['perl', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['fixed', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['useBytes', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: true },
|
|
1292
1359
|
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['substr', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['start', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['stop', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
@@ -1299,7 +1366,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1299
1366
|
gives them; what this adds is which argument is the data and what the further ones are called */
|
|
1300
1367
|
{ overrides: true, type: 'function', names: identifier_1.Identifier.fromAll("dplyr" /* PkgName.Dplyr */, ['mutate', 'select', 'rename']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { markArgsAsMasked: known_call_handling_1.NseArguments.AllButFirst, props: built_in_props_1.CallProp.Pure, sig: SigDataDots }, assumePrimitive: false },
|
|
1301
1368
|
/* `transmute` is one of them and deprecated on top of it */
|
|
1302
|
-
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['transmute', "dplyr" /* PkgName.Dplyr */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { markArgsAsMasked: known_call_handling_1.NseArguments.AllButFirst, props: built_in_props_1.CallProp.Pure,
|
|
1369
|
+
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['transmute', "dplyr" /* PkgName.Dplyr */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { markArgsAsMasked: known_call_handling_1.NseArguments.AllButFirst, props: built_in_props_1.CallProp.Pure, sig: SigDataDots }, assumePrimitive: false },
|
|
1303
1370
|
{ type: 'function', names: [identifier_1.Identifier.from(['filter', "stats" /* PkgName.Stats */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['filter', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['method', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['sides', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['circular', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['init', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1304
1371
|
{ type: 'function', names: [identifier_1.Identifier.from(['step', "stats" /* PkgName.Stats */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Prints], sig: [['object', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['scope', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['scale', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['direction', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['trace', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['steps', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['k', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1305
1372
|
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['filter', "dplyr" /* PkgName.Dplyr */]), identifier_1.Identifier.from(['slice', "dplyr" /* PkgName.Dplyr */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { markArgsAsMasked: known_call_handling_1.NseArguments.AllButFirst, props: built_in_props_1.CallProp.Pure, sig: [...SigDataDots, ['.by', built_in_props_1.ArgProp.Value], ['.preserve', built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
@@ -1315,7 +1382,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1315
1382
|
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['drop_na', "tidyr" /* PkgName.TidyR */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { markArgsAsMasked: known_call_handling_1.NseArguments.AllButFirst, props: built_in_props_1.CallProp.Pure, sig: [['data', built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1316
1383
|
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['pivot_longer', "tidyr" /* PkgName.TidyR */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { markArgsAsMasked: known_call_handling_1.NseArguments.AllButFirst, props: built_in_props_1.CallProp.Pure, sig: [['data', built_in_props_1.ArgProp.Value], ['cols', built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Value], ['names_to', built_in_props_1.ArgProp.Value], ['values_to', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1317
1384
|
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['pivot_wider', "tidyr" /* PkgName.TidyR */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { markArgsAsMasked: known_call_handling_1.NseArguments.AllButFirst, props: built_in_props_1.CallProp.Pure, sig: [['data', built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Value], ['names_from', built_in_props_1.ArgProp.Value], ['values_from', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1318
|
-
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['separate', "tidyr" /* PkgName.TidyR */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { markArgsAsMasked: known_call_handling_1.NseArguments.AllButFirst, props: built_in_props_1.CallProp.Pure,
|
|
1385
|
+
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['separate', "tidyr" /* PkgName.TidyR */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { markArgsAsMasked: known_call_handling_1.NseArguments.AllButFirst, props: built_in_props_1.CallProp.Pure, sig: [['data', built_in_props_1.ArgProp.Value], ['col', built_in_props_1.ArgProp.Value], ['into', built_in_props_1.ArgProp.Value], ['sep', built_in_props_1.ArgProp.Value], ['remove', built_in_props_1.ArgProp.Flag], ['convert', built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1319
1386
|
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['unite', "tidyr" /* PkgName.TidyR */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { markArgsAsMasked: known_call_handling_1.NseArguments.AllButFirst, props: built_in_props_1.CallProp.Pure, sig: [['data', built_in_props_1.ArgProp.Value], ['col', built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Value], ['sep', built_in_props_1.ArgProp.Value], ['remove', built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1320
1387
|
{ overrides: true, type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['subset', 'transform']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { markArgsAsMasked: known_call_handling_1.NseArguments.AllButFirst, props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1321
1388
|
/* these share the `f(x, ...)` shape above, but R puts one more formal before the `...`: leaving it out
|
|
@@ -1333,18 +1400,27 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1333
1400
|
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['writeLines', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes, built_in_props_1.SemanticCallTag.Prints], sig: [['text', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['con', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['sep', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['useBytes', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1334
1401
|
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['write.table', "utils" /* PkgName.Utils */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['append', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['quote', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['sep', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1335
1402
|
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['download.file', "utils" /* PkgName.Utils */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['url', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['destfile', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['method', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['quiet', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['mode', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['cacheOK', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['extra', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['headers', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1336
|
-
|
|
1337
|
-
{ type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: identifier_1.Identifier.fromAll("dplyr" /* PkgName.Dplyr */, ['id', 'top_n', 'sample_n', 'recode', 'progress_estimated', 'group_nest', 'add_rownames', 'tbl_df', 'src_local', 'summarise_each', 'summarize_', 'summarise_', 'slice_', 'select_vars_', 'select_', 'rename_vars_', 'rename_', 'transmute_', 'tally_', 'mutate_', 'group_indices_', 'group_by_', 'funs_', 'filter_', 'do_', 'distinct_', 'count_', 'arrange_', 'add_tally_', 'add_count_', 'funs', 'do', 'combine', 'changes', 'location', 'eval_tbls2', 'eval_tbls', 'compare_tbls2', 'compare_tbls', 'bench_tbls', 'current_vars', 'select_var', 'rename_vars', 'select_vars', 'failwith', 'all_vars', 'vars', 'select_all', 'mutate_all', 'summarise_all', 'group_by_all', 'filter_all', 'all_equal', 'arrange_all', 'distinct_all']) },
|
|
1403
|
+
{ type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: identifier_1.Identifier.fromAll("dplyr" /* PkgName.Dplyr */, ['id', 'progress_estimated', 'add_rownames', 'tbl_df', 'src_local', 'summarise_each', 'summarize_', 'summarise_', 'slice_', 'select_vars_', 'select_', 'rename_vars_', 'rename_', 'transmute_', 'tally_', 'mutate_', 'group_indices_', 'group_by_', 'funs_', 'filter_', 'do_', 'distinct_', 'count_', 'arrange_', 'add_tally_', 'add_count_', 'funs', 'combine', 'changes', 'location', 'eval_tbls2', 'eval_tbls', 'compare_tbls2', 'compare_tbls', 'bench_tbls', 'current_vars', 'select_var', 'rename_vars', 'select_vars', 'failwith', 'all_equal']) },
|
|
1338
1404
|
{ type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: [identifier_1.Identifier.make('fct_explicit_na', "forcats" /* PkgName.Forecats */)] },
|
|
1339
1405
|
/* deprecated, but still data-masking: restating the mask keeps the column names out of the variable resolution */
|
|
1340
|
-
{ overrides: true, type: 'function', processor: built_in_proc_name_1.BuiltInProcName.Default, config: { markArgsAsMasked: known_call_handling_1.NseArguments.AllButFirst, props: built_in_props_1.CallProp.Pure
|
|
1406
|
+
{ overrides: true, type: 'function', processor: built_in_proc_name_1.BuiltInProcName.Default, config: { markArgsAsMasked: known_call_handling_1.NseArguments.AllButFirst, props: built_in_props_1.CallProp.Pure }, names: [...identifier_1.Identifier.fromAll("dplyr" /* PkgName.Dplyr */, ['with_groups']), ...identifier_1.Identifier.fromAll("tidyr" /* PkgName.TidyR */, ['spread', 'separate_rows', 'gather', 'extract'])] },
|
|
1341
1407
|
{ type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: identifier_1.Identifier.fromAll("ggplot2" /* PkgName.GgPlot2 */, ['gg_dep', 'is.ggplot', 'guide_train', 'aes_auto', 'aes_']) },
|
|
1342
1408
|
{ type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: identifier_1.Identifier.fromAll("plyr" /* PkgName.Plyr */, ['liply', 'isplit2']) },
|
|
1343
|
-
{ type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: identifier_1.Identifier.fromAll("purrr" /* PkgName.Purrr */, ['
|
|
1409
|
+
{ type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: identifier_1.Identifier.fromAll("purrr" /* PkgName.Purrr */, ['reduce_right', 'map_raw', 'update_list', 'when', 'rdunif', 'rbernoulli', 'splice', 'rerun', 'prepend', 'at_depth', 'cross', 'list_along']) },
|
|
1344
1410
|
{ type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: ['`%@%`'] },
|
|
1345
1411
|
{ type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: identifier_1.Identifier.fromAll("readr" /* PkgName.Readr */, ['read_table2', 'melt_table', 'melt_fwf', 'melt_delim']) },
|
|
1346
|
-
{ type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: identifier_1.Identifier.fromAll("tibble" /* PkgName.Tibble */, ['
|
|
1347
|
-
{ type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: identifier_1.Identifier.fromAll("tidyr" /* PkgName.TidyR */, ['
|
|
1412
|
+
{ type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: identifier_1.Identifier.fromAll("tibble" /* PkgName.Tibble */, ['is.tibble', 'trunc_mat', 'frame_data', 'as.tibble', 'as_data_frame', 'lst_', 'data_frame_', 'tibble_', 'data_frame']) },
|
|
1413
|
+
{ type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: identifier_1.Identifier.fromAll("tidyr" /* PkgName.TidyR */, ['unnest_', 'unite_', 'spread_', 'separate_', 'separate_rows_', 'nest_', 'gather_', 'fill_', 'extract_', 'nesting_', 'crossing_', 'expand_', 'drop_na_', 'complete_', 'extract_numeric']) },
|
|
1414
|
+
/* superseded or experimental in their lifecycle, which is no deprecation */
|
|
1415
|
+
{ type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: {}, names: [...identifier_1.Identifier.fromAll("dplyr" /* PkgName.Dplyr */, ['top_n', 'sample_n', 'recode', 'group_nest', 'do', 'all_vars', 'vars', 'select_all', 'mutate_all', 'summarise_all', 'group_by_all', 'filter_all', 'arrange_all', 'distinct_all']), ...identifier_1.Identifier.fromAll("purrr" /* PkgName.Purrr */, ['transpose', 'as_vector', 'map_dfr', 'flatten']), ...identifier_1.Identifier.fromAll("tibble" /* PkgName.Tibble */, ['repair_names', 'set_tidy_names', 'tidy_names']), ...identifier_1.Identifier.fromAll("tidyr" /* PkgName.TidyR */, ['nest_legacy'])] },
|
|
1416
|
+
/* deprecated, but only when when a certain condition is met (e.g. specific argument value)
|
|
1417
|
+
https://tidyverse.org/blog/2025/09/ggplot2-4-0-0/#violin--quantiles
|
|
1418
|
+
the quantiles moved to the stat, and the geom only kept arguments styling them, so neither is a rename of
|
|
1419
|
+
`draw_quantiles = 0.5`: the value is a quantile, not a linetype, and `quantiles` is no formal of the geom */
|
|
1420
|
+
{ overrides: true, type: 'function', processor: built_in_proc_name_1.BuiltInProcName.Default, names: [identifier_1.Identifier.make('geom_violin', "ggplot2" /* PkgName.GgPlot2 */)], config: { ...PlotAddonConfig, deprInfo: { whenArgs: [{ argName: 'draw_quantiles', state: deprecation_info_1.DeprecationState.Deprecated, replacedBy: 'stat_ydensity(quantiles)', sinceVersion: '>= 4.0.0' }] } } },
|
|
1421
|
+
/* `size` names the stroke width of every line-based geom until ggplot2 4.0.0 renamed it: it gained
|
|
1422
|
+
`linewidth` beside it in 3.4.0, and 4.0.0 drops `size`. */
|
|
1423
|
+
{ type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, names: identifier_1.Identifier.fromAll("ggplot2" /* PkgName.GgPlot2 */, ['element_line', 'element_rect']), config: { deprInfo: { whenArgs: [{ argName: 'size', state: deprecation_info_1.DeprecationState.Deprecated, replacedBy: 'linewidth', sinceVersion: '>= 3.4.0' }] } } }
|
|
1348
1424
|
];
|
|
1349
1425
|
/** Contains the built-in definitions recognized by flowR */
|
|
1350
1426
|
exports.DefaultBuiltinConfig = markPrimitives(markGenerics(exports.WrittenBuiltinDefinitions));
|