@eagleoutice/flowr 2.17.0 → 2.17.2
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 +8 -8
- package/config.d.ts +32 -0
- package/config.js +22 -2
- package/control-flow/semantic-cfg-guided-visitor.js +2 -0
- package/dataflow/environments/ambient-state-name.d.ts +4 -0
- package/dataflow/environments/ambient-state-name.js +4 -0
- package/dataflow/environments/built-in-proc-name.d.ts +4 -0
- package/dataflow/environments/built-in-proc-name.js +4 -0
- package/dataflow/environments/built-in-props.d.ts +18 -2
- package/dataflow/environments/built-in-props.js +26 -4
- package/dataflow/environments/built-in.d.ts +16 -6
- package/dataflow/environments/built-in.js +58 -7
- package/dataflow/environments/default-builtin-config.d.ts +1245 -159
- package/dataflow/environments/default-builtin-config.js +191 -38
- package/dataflow/environments/environment.d.ts +19 -2
- package/dataflow/environments/environment.js +90 -19
- package/dataflow/environments/identifier.d.ts +25 -1
- package/dataflow/environments/query-fn-props.js +4 -3
- package/dataflow/environments/resolve-by-name.js +5 -3
- package/dataflow/eval/resolve/node-value.d.ts +1 -1
- package/dataflow/eval/resolve/node-value.js +2 -2
- package/dataflow/eval/resolve/resolve-argument.js +1 -1
- package/dataflow/extractor.js +68 -17
- package/dataflow/fn/function-semantics.d.ts +1 -0
- package/dataflow/graph/df-helper.d.ts +34 -1
- package/dataflow/graph/df-helper.js +60 -0
- package/dataflow/info.d.ts +2 -0
- package/dataflow/info.js +4 -0
- package/dataflow/internal/linker.js +21 -5
- package/dataflow/internal/process/functions/call/built-in/built-in-ambient-keys.d.ts +4 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-ambient-keys.js +3 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-ambient-state.d.ts +18 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-ambient-state.js +144 -30
- package/dataflow/internal/process/functions/call/built-in/built-in-apply.d.ts +1 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-apply.js +2 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-assignment.d.ts +1 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-assignment.js +10 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-attach.d.ts +8 -4
- package/dataflow/internal/process/functions/call/built-in/built-in-attach.js +43 -8
- package/dataflow/internal/process/functions/call/built-in/built-in-env-contents.d.ts +1 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-env-contents.js +5 -4
- package/dataflow/internal/process/functions/call/built-in/built-in-eval.js +67 -3
- package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.js +4 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.js +27 -3
- 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 +2 -14
- package/dataflow/internal/process/functions/call/built-in/built-in-if-then-else.js +1 -7
- package/dataflow/internal/process/functions/call/built-in/built-in-library.d.ts +28 -10
- package/dataflow/internal/process/functions/call/built-in/built-in-library.js +134 -88
- package/dataflow/internal/process/functions/call/built-in/built-in-load.d.ts +1 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-load.js +87 -10
- package/dataflow/internal/process/functions/call/built-in/built-in-local.d.ts +8 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-local.js +23 -12
- package/dataflow/internal/process/functions/call/built-in/built-in-source.d.ts +7 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-source.js +28 -10
- package/dataflow/internal/process/functions/call/built-in/built-in-try-catch.js +1 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-with.js +7 -5
- package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.d.ts +2 -2
- package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.js +18 -15
- package/dataflow/internal/process/functions/call/named-call-handling.js +8 -4
- package/dataflow/internal/process/functions/call/quoted.d.ts +2 -0
- package/dataflow/internal/process/functions/call/quoted.js +8 -7
- package/documentation/wiki-dataflow-graph.js +20 -1
- package/linter/rules/network-functions.js +10 -2
- package/linter/rules/undefined-symbol.js +2 -2
- package/linter/rules/unused-import.js +11 -1
- package/package.json +1 -1
- package/project/attached-packages.d.ts +11 -6
- package/project/attached-packages.js +37 -9
- package/project/cache/flowr-analyzer-cache.d.ts +4 -0
- package/project/cache/flowr-analyzer-cache.js +11 -0
- package/project/context/flowr-analyzer-dependencies-context.d.ts +3 -0
- package/project/context/flowr-analyzer-dependencies-context.js +6 -0
- package/project/context/flowr-file.d.ts +2 -2
- package/project/context/flowr-file.js +2 -2
- package/project/plugins/file-plugins/files/flowr-manifest-files.d.ts +39 -4
- package/project/plugins/file-plugins/files/flowr-manifest-files.js +134 -30
- package/project/plugins/file-plugins/files/flowr-rmarkdown-file.js +1 -1
- package/project/plugins/file-plugins/flowr-analyzer-manifest-file-plugin.d.ts +7 -0
- package/project/plugins/file-plugins/flowr-analyzer-manifest-file-plugin.js +14 -1
- package/project/plugins/file-plugins/flowr-analyzer-virtualenv-file-plugin.d.ts +1 -1
- package/project/plugins/file-plugins/flowr-analyzer-virtualenv-file-plugin.js +3 -3
- package/project/plugins/package-version-plugins/flowr-analyzer-meta-manifest-file-plugin.d.ts +18 -5
- package/project/plugins/package-version-plugins/flowr-analyzer-meta-manifest-file-plugin.js +43 -15
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-lockfile-plugin.d.ts +12 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-lockfile-plugin.js +31 -2
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-on-demand-plugin.d.ts +58 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-on-demand-plugin.js +237 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-plugin.d.ts +8 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-plugin.js +8 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-sigdb-plugin.d.ts +7 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-sigdb-plugin.js +24 -18
- package/project/plugins/plugin-registry.d.ts +5 -4
- package/project/plugins/plugin-registry.js +6 -0
- package/project/plugins/project-discovery/flowr-analyzer-project-discovery-plugin.js +4 -4
- package/project/sigdb/decode.js +13 -3
- package/project/sigdb/memory-source.d.ts +6 -4
- package/project/sigdb/memory-source.js +6 -5
- package/project/sigdb/on-demand/fetch.d.ts +18 -0
- package/project/sigdb/on-demand/fetch.js +127 -0
- package/project/sigdb/on-demand/package-sources.d.ts +40 -0
- package/project/sigdb/on-demand/package-sources.js +263 -0
- package/project/sigdb/on-demand/recoverer.d.ts +40 -0
- package/project/sigdb/on-demand/recoverer.js +169 -0
- package/project/sigdb/on-demand/remote-sources.d.ts +72 -0
- package/project/sigdb/on-demand/remote-sources.js +132 -0
- package/project/sigdb/on-demand/tar.d.ts +19 -0
- package/project/sigdb/on-demand/tar.js +119 -0
- package/queries/catalog/dependencies-query/function-info/derived-functions.d.ts +5 -0
- package/queries/catalog/dependencies-query/function-info/derived-functions.js +17 -1
- package/queries/catalog/dependencies-query/function-info/read-functions.js +3 -1
- package/queries/catalog/dependencies-query/function-info/write-functions.js +11 -1
- package/queries/catalog/signature-query/signature-query-executor.js +15 -1
- package/queries/catalog/signature-query/signature-query-format.d.ts +3 -2
- package/r-bridge/data/data.d.ts +31 -2
- package/r-bridge/data/data.js +25 -2
- package/r-bridge/lang-4.x/ast/model/model.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/model.js +6 -1
- package/r-bridge/lang-4.x/ast/model/processing/node-id.d.ts +6 -1
- package/r-bridge/lang-4.x/ast/model/processing/node-id.js +12 -1
- package/r-bridge/lang-4.x/tree-sitter/tree-sitter-executor.d.ts +4 -0
- package/r-bridge/lang-4.x/tree-sitter/tree-sitter-executor.js +8 -0
- package/reconstruct/reconstruct.js +2 -5
- package/search/search-executor/search-enrichers.js +17 -2
- package/search/search-executor/search-generators.js +6 -2
- package/slicing/static/slice-call.d.ts +16 -0
- package/slicing/static/slice-call.js +42 -0
- package/slicing/static/static-slicer.js +6 -0
- package/taint-analysis/predefined/secret-analysis.js +7 -2
- package/taint-analysis/taint-mapping.d.ts +5 -2
- package/taint-analysis/taint-mapping.js +17 -6
- package/util/flowr-version.d.ts +1 -1
- package/util/flowr-version.js +2 -2
- package/util/r-version.js +4 -2
|
@@ -120,7 +120,8 @@ exports.PlotFunctionPackages = {
|
|
|
120
120
|
'stat_summary_2d', 'stat_summary_bin', 'stat_summary_hex', 'stat_unique', 'stat_ydensity', 'theme', 'theme_bw',
|
|
121
121
|
'theme_classic', 'theme_dark', 'theme_get', 'theme_gray', 'theme_grey', 'theme_light', 'theme_linedraw',
|
|
122
122
|
'theme_minimal', 'theme_replace', 'theme_sub_axis', 'theme_sub_axis_bottom', 'theme_sub_axis_left', 'theme_sub_axis_right', 'theme_sub_axis_top', 'theme_sub_axis_x', 'theme_sub_axis_y', 'theme_sub_legend', 'theme_sub_panel', 'theme_sub_plot', 'theme_sub_strip', 'theme_test', 'theme_update', 'theme_void', 'xlab', 'xlim', 'ylab', 'ylim'],
|
|
123
|
-
ggpubr: ['
|
|
123
|
+
ggpubr: ['ggballoonplot', 'ggbarplot', 'ggdensity', 'ggdonutchart', 'ggdotchart', 'ggdotplot', 'ggecdf', 'ggerrorplot', 'gghistogram',
|
|
124
|
+
'ggline', 'ggmaplot', 'ggpaired', 'ggpie', 'ggqqplot', 'ggscatterhist', 'ggstripchart', 'ggviolin', 'gradient_color'],
|
|
124
125
|
ggthemes: ['scale_color_calc', 'scale_color_canva', 'scale_color_colorblind', 'scale_color_continuous_tableau',
|
|
125
126
|
'scale_color_economist', 'scale_color_excel', 'scale_color_excel_new', 'scale_color_few',
|
|
126
127
|
'scale_color_fivethirtyeight', 'scale_color_gdocs', 'scale_color_gradient2_tableau',
|
|
@@ -141,6 +142,19 @@ exports.PlotFunctionPackages = {
|
|
|
141
142
|
'theme_igray', 'theme_map', 'theme_pander', 'theme_par', 'theme_solarized', 'theme_solarized_2', 'theme_solid',
|
|
142
143
|
'theme_stata', 'theme_tufte', 'theme_wsj'],
|
|
143
144
|
HoRM: ['regressogram'],
|
|
145
|
+
ggmirt: ['conRelPlot', 'itemDist', 'itemInfoPlot', 'itemfitPlot', 'itempersonMap', 'personDist', 'personfitPlot',
|
|
146
|
+
'scaleCharPlot', 'summaryPlot', 'testInfoCompare', 'testInfoPlot', 'tracePlot'],
|
|
147
|
+
GGally: ['ggbivariate', 'ggcoef', 'ggcoef_compare', 'ggcoef_model', 'ggcorr', 'ggduo', 'ggnet2', 'ggnostic', 'ggpairs',
|
|
148
|
+
'ggparcoord', 'ggscatmat', 'ggsurv', 'ggtable', 'ggts'],
|
|
149
|
+
ggstatsplot: ['ggbarstats', 'ggbetweenstats', 'ggcoefstats', 'ggcorrmat', 'ggdotplotstats', 'gghistostats', 'ggpiestats',
|
|
150
|
+
'ggscatterstats', 'ggwithinstats', 'grouped_ggbarstats', 'grouped_ggbetweenstats', 'grouped_ggcorrmat',
|
|
151
|
+
'grouped_ggdotplotstats', 'grouped_gghistostats', 'grouped_ggpiestats', 'grouped_ggscatterstats', 'grouped_ggwithinstats'],
|
|
152
|
+
sjPlot: ['plot_frq', 'plot_grpfrq', 'plot_likert', 'plot_models', 'plot_residuals', 'plot_scatter', 'plot_stackfrq', 'plot_xtab'],
|
|
153
|
+
EnhancedVolcano: ['EnhancedVolcano'],
|
|
154
|
+
qgraph: ['centralityPlot', 'clusteringPlot', 'qgraph'],
|
|
155
|
+
semPlot: ['semPaths'],
|
|
156
|
+
psych: ['cor.plot', 'corPlot', 'error.bars', 'fa.diagram', 'pairs.panels', 'scatter.hist'],
|
|
157
|
+
mirt: ['itemplot'],
|
|
144
158
|
gplots: ['bandplot', 'barplot2', 'boxplot2', 'bubbleplot', 'heatmap.2', 'lmplot2', 'overplot', 'plotCI',
|
|
145
159
|
'plotmeans', 'residplot', 'sinkplot', 'textplot'],
|
|
146
160
|
gridExtra: ['grid.arrange'],
|
|
@@ -191,6 +205,17 @@ exports.GgPlotCreate = [
|
|
|
191
205
|
'ggplot', 'ggplotly', 'ggMarginal', 'ggcorrplot', 'ggseasonplot', 'ggdendrogram', 'qmap', 'qplot', 'quickplot', 'autoplot', 'grid.arrange',
|
|
192
206
|
'fviz_pca_biplot', 'fviz_pca', 'fviz_pca_ind', 'fviz_pca_var', 'fviz_screeplot', 'fviz_mca_biplot', 'fviz_mca', 'fviz_mca_ind', 'fviz_mca_var', 'fviz_cluster', 'fviz_dend',
|
|
193
207
|
'ggsurvplot',
|
|
208
|
+
/* ggmirt, plots of mirt models */
|
|
209
|
+
'conRelPlot', 'itemDist', 'itemInfoPlot', 'itemfitPlot', 'itempersonMap', 'personDist', 'personfitPlot', 'scaleCharPlot', 'summaryPlot',
|
|
210
|
+
'testInfoCompare', 'testInfoPlot', 'tracePlot',
|
|
211
|
+
'ggbivariate', 'ggcoef', 'ggcoef_compare', 'ggcoef_model', 'ggcorr', 'ggduo', 'ggnet2', 'ggnostic', 'ggpairs', 'ggparcoord', 'ggscatmat', 'ggsurv', 'ggtable', 'ggts',
|
|
212
|
+
'ggbarstats', 'ggbetweenstats', 'ggcoefstats', 'ggcorrmat', 'ggdotplotstats', 'gghistostats', 'ggpiestats', 'ggscatterstats', 'ggwithinstats',
|
|
213
|
+
'grouped_ggbarstats', 'grouped_ggbetweenstats', 'grouped_ggcorrmat', 'grouped_ggdotplotstats', 'grouped_gghistostats', 'grouped_ggpiestats',
|
|
214
|
+
'grouped_ggscatterstats', 'grouped_ggwithinstats',
|
|
215
|
+
'ggbarplot', 'ggdensity', 'ggdotchart', 'ggdotplot', 'ggecdf', 'ggerrorplot', 'gghistogram', 'ggline', 'ggmaplot', 'ggpaired', 'ggpie',
|
|
216
|
+
'ggdonutchart', 'ggqqplot', 'ggscatterhist', 'ggstripchart', 'ggviolin', 'ggballoonplot',
|
|
217
|
+
'plot_frq', 'plot_grpfrq', 'plot_likert', 'plot_models', 'plot_residuals', 'plot_scatter', 'plot_stackfrq', 'plot_xtab',
|
|
218
|
+
'EnhancedVolcano', 'centralityPlot', 'clusteringPlot'
|
|
194
219
|
];
|
|
195
220
|
exports.TinyPlotCrate = [
|
|
196
221
|
'tinyplot', 'plt'
|
|
@@ -202,11 +227,12 @@ exports.GraphicsPlotCreate = [
|
|
|
202
227
|
'spineplot', 'regressogram', 'bootcurve', 'meanplot', 'vioplot', 'pairs', 'coplot', 'histogram', 'splom', 'leaflet', 'tm_shape', 'plot_ly', 'plotSimulatedResiduals', 'plotmeans',
|
|
203
228
|
'overplot', 'residplot', 'heatmap.2', 'lmplot2', 'sinkplot', 'textplot', 'boxplot2',
|
|
204
229
|
'ggarrange', 'ggboxplot', 'ggscatter', 'corrplot', 'plot_grid', 'wrap_plots', 'levelplot', 'image.plot', 'biplot', 'screeplot',
|
|
205
|
-
'interaction.plot', 'termplot', 'plot_model', 'emmip'
|
|
230
|
+
'interaction.plot', 'termplot', 'plot_model', 'emmip',
|
|
231
|
+
'qgraph', 'semPaths', 'pairs.panels', 'fa.diagram', 'corPlot', 'cor.plot', 'error.bars', 'scatter.hist', 'itemplot'
|
|
206
232
|
];
|
|
207
233
|
exports.PlotCreate = exports.GraphicsPlotCreate.concat(exports.TinyPlotCrate, exports.GgPlotCreate);
|
|
208
234
|
/** the creators above that, other than base graphics, return their plot visibly instead of drawing it at once */
|
|
209
|
-
const VisiblePlotCreate = new Set(['xyplot', 'stripplot', 'bwplot', 'dotplot', 'histogram', 'splom', 'leaflet', 'plot_ly', 'tm_shape']);
|
|
235
|
+
const VisiblePlotCreate = new Set(['xyplot', 'stripplot', 'bwplot', 'dotplot', 'histogram', 'splom', 'leaflet', 'plot_ly', 'tm_shape', 'itemplot']);
|
|
210
236
|
/** the plot creators that return the plot to draw when printed, where base graphics draw at once and return something else */
|
|
211
237
|
exports.PlotObjectCreate = new Set([...exports.GgPlotCreate.filter(f => f !== 'grid.arrange'), 'last_plot', ...VisiblePlotCreate, 'pheatmap']);
|
|
212
238
|
const GraphicDeviceOpen = [
|
|
@@ -281,6 +307,17 @@ const MagrittrPipePackages = ["magrittr" /* PkgName.Magrittr */, "dplyr" /* PkgN
|
|
|
281
307
|
"tidyr" /* PkgName.TidyR */, "testthat" /* PkgName.Testthat */, "magick" /* PkgName.Magick */, "promises" /* PkgName.Promises */];
|
|
282
308
|
/** The packages re-exporting rlang's tidy-evaluation helpers unchanged. */
|
|
283
309
|
const TidyEvalPackages = ["rlang" /* PkgName.Rlang */, "dplyr" /* PkgName.Dplyr */, "ggplot2" /* PkgName.GgPlot2 */];
|
|
310
|
+
/** the database a connection opens is a file: its tables are read and changed through the connection */
|
|
311
|
+
const DbConnectSig = [['drv', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['dbname', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]];
|
|
312
|
+
const DbConnSig = [['conn', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]];
|
|
313
|
+
const DbReads = { type: "read-files" /* AmbientStateAccessType.ReadFiles */, sig: DbConnSig };
|
|
314
|
+
const DbReadsWrites = (sig) => [{ type: "read-files" /* AmbientStateAccessType.ReadFiles */, sig }, { type: "write-files" /* AmbientStateAccessType.WriteFiles */, sig }];
|
|
315
|
+
const DbPackages = ["DBI" /* PkgName.Dbi */, "RSQLite" /* PkgName.Rsqlite */, 'RPostgres', 'RMariaDB', 'odbc', 'pool'];
|
|
316
|
+
/** reads the files some arguments name and writes the ones its {@link ArgProp.Written} arguments name, like `file.copy` or `unzip` */
|
|
317
|
+
const SetsAnyEnvVar = [ambient_state_name_1.AmbientStateName.keyed(ambient_state_name_1.KeyedState.Env, ambient_state_name_1.UnknownKey), ambient_state_name_1.AmbientStateName.allOf(ambient_state_name_1.KeyedState.Env)].map(state => ({ type: "set-state" /* AmbientStateAccessType.SetState */, state }));
|
|
318
|
+
const CopiesFiles = [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads, built_in_props_1.SemanticCallTag.Writes];
|
|
319
|
+
/** reads what its URL (or remote object) arguments name from the network and writes the file its {@link ArgProp.Written} arguments name, like `download.file` */
|
|
320
|
+
const Downloads = [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads, built_in_props_1.SemanticCallTag.Writes];
|
|
284
321
|
const SigAtomicBinOp = [['e1', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Atomic], ['e2', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Atomic]];
|
|
285
322
|
const SigAtomicX = [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Atomic]];
|
|
286
323
|
const SigXY = [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['y', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]];
|
|
@@ -314,7 +351,8 @@ const ModelFits = [
|
|
|
314
351
|
identifier_1.Identifier.from(['coxph', "survival" /* PkgName.Survival */]), identifier_1.Identifier.from(['glm.nb', "MASS" /* PkgName.Mass */]), identifier_1.Identifier.from(['feols', "fixest" /* PkgName.Fixest */])
|
|
315
352
|
];
|
|
316
353
|
/* `with(data, expr)`: `expr` is evaluated in the data */
|
|
317
|
-
|
|
354
|
+
/* the expression runs in the data's environment, not where it is written */
|
|
355
|
+
const WithSig = [['data', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Written], ['expr', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Nse], ['...', 0]];
|
|
318
356
|
/**
|
|
319
357
|
* The manual page documenting a base R primitive, for the ones not documented under their own name (a primitive
|
|
320
358
|
* is written in C, so no signature/source/help-topic extractor sees it; `sin` is documented under `Trig`).
|
|
@@ -538,12 +576,19 @@ const ReadPrintingOptions = { type: "read-options" /* AmbientStateAccessType.Rea
|
|
|
538
576
|
/* a method for the printed value may read any option, see {@link AmbientStateAccess} */
|
|
539
577
|
const PrintDispatched = { type: "read-options" /* AmbientStateAccessType.ReadOptions */, keys: built_in_ambient_state_1.PrintingOptions, dispatchOn: 0 };
|
|
540
578
|
const OpenDevice = { type: "open-device" /* AmbientStateAccessType.OpenDevice */ };
|
|
579
|
+
/** the devices that are open, which `dev.cur()` and `dev.list()` report */
|
|
580
|
+
const ReadDevices = [ambient_state_name_1.AmbientStateName.device, ambient_state_name_1.AmbientStateName.otherDevicesOpenedBy].map(state => ({ type: "read-state" /* AmbientStateAccessType.ReadState */, state }));
|
|
541
581
|
/** sets the entries of an environment variable, a locale or a search path state that the call names with the parameter `name` of the given signature */
|
|
542
582
|
const SetsEntryNamedBy = (state, signature, name, rest = {}) => ({ type: "set-keyed" /* AmbientStateAccessType.SetKeyed */, state, keys: { from: 'parameter', signature, names: [name], ...rest } });
|
|
543
583
|
const SetsEntry = (state, key) => ({ type: "set-keyed" /* AmbientStateAccessType.SetKeyed */, state, keys: { from: 'constant', key } });
|
|
544
584
|
/** `library(pkg)` and `library("pkg")` name the package, `library(pkg, character.only = TRUE)` looks the variable up */
|
|
545
585
|
const LibrarySearchPath = SetsEntryNamedBy(ambient_state_name_1.KeyedState.SearchPath, ['package', 'help', 'pos', 'lib.loc', 'character.only'], 'package', { quoted: 'character.only' });
|
|
546
|
-
const
|
|
586
|
+
const LoaderSearchPath = (quoted) => ({ type: "set-keyed" /* AmbientStateAccessType.SetKeyed */, state: ambient_state_name_1.KeyedState.SearchPath, keys: { from: 'unnamed', quoted } });
|
|
587
|
+
/* which entry a detach removes depends on every earlier attach, so it reads the search path as well */
|
|
588
|
+
const DetachSearchPath = [
|
|
589
|
+
SetsEntryNamedBy(ambient_state_name_1.KeyedState.SearchPath, ['name', 'pos', 'unload', 'character.only', 'force'], 'name', { quoted: 'character.only' }),
|
|
590
|
+
{ type: "read-state" /* AmbientStateAccessType.ReadState */, state: ambient_state_name_1.AmbientStateName.allOf(ambient_state_name_1.KeyedState.SearchPath) }
|
|
591
|
+
];
|
|
547
592
|
const ImportSearchPath = SetsEntryNamedBy(ambient_state_name_1.KeyedState.SearchPath, ['.from', '...', '.into', '.library', '.directory', '.all', '.except', '.chdir', '.character_only', '.S3'], '.into', { fallback: 'imports' });
|
|
548
593
|
/** `attach(df)` is named `df`, `attach(df, name = "data")` is named `data` */
|
|
549
594
|
const AttachSearchPath = { type: "set-keyed" /* AmbientStateAccessType.SetKeyed */, state: ambient_state_name_1.KeyedState.SearchPath, keys: { from: 'parameter', signature: ['what', 'pos', 'name', 'warn.conflicts'], names: ['name', 'what'], quoted: true } };
|
|
@@ -622,7 +667,9 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
622
667
|
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['paste', 'paste0']), 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], ['sep', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.StringFn },
|
|
623
668
|
{ type: 'function', names: [identifier_1.Identifier.from(['file.path', "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], ['fsep', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.StringFn },
|
|
624
669
|
/* `here` joins its arguments below the project root, which stays implicit */
|
|
625
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['here', "here" /* PkgName.Here */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { libFn: true, props: built_in_props_1.CallProp.Pure, sig: [['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false, evalHandler: built_in_eval_name_1.BuiltInEvalName.StringFn },
|
|
670
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['here', "here" /* PkgName.Here */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { libFn: true, props: built_in_props_1.CallProp.Pure, ambient: [{ type: "read-state" /* AmbientStateAccessType.ReadState */, state: ambient_state_name_1.AmbientStateName.projectRoot }, { type: "read-state" /* AmbientStateAccessType.ReadState */, state: ambient_state_name_1.AmbientStateName.workingDirectory }], sig: [['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false, evalHandler: built_in_eval_name_1.BuiltInEvalName.StringFn },
|
|
671
|
+
/* naming the script fixes the root, which must hold that file */
|
|
672
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['i_am', "here" /* PkgName.Here */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { libFn: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Configures, ambient: { type: "set-state" /* AmbientStateAccessType.SetState */, state: ambient_state_name_1.AmbientStateName.projectRoot }, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: [['path', 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 },
|
|
626
673
|
/* `x` carries the data, whatever follows only tunes the result */
|
|
627
674
|
{
|
|
628
675
|
type: 'function',
|
|
@@ -720,7 +767,9 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
720
767
|
dependency query reads its `read` and `write` categories back from here rather than listing them again */
|
|
721
768
|
{ type: 'function', names: [identifier_1.Identifier.from(['read.dcf', "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], 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 },
|
|
722
769
|
{ type: 'function', names: [identifier_1.Identifier.from(['read.fwf', "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], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
723
|
-
|
|
770
|
+
/* reading an environment file sets the variables it lists, which we do not know */
|
|
771
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['readRenviron', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { readAllArguments: true, hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Configures, ambient: SetsAnyEnvVar, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: [['path', 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 },
|
|
772
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['load_dot_env', "dotenv" /* PkgName.Dotenv */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, readAllArguments: true, hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Configures, ambient: SetsAnyEnvVar, 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], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
724
773
|
{ type: 'function', names: [identifier_1.Identifier.from(['read_csv', "readr" /* PkgName.Readr */])], 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: [['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 },
|
|
725
774
|
{ type: 'function', names: [identifier_1.Identifier.from(['read_csv2', "readr" /* PkgName.Readr */])], 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: [['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 },
|
|
726
775
|
{ type: 'function', names: [identifier_1.Identifier.from(['read_lines', "readr" /* PkgName.Readr */])], 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: [['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 },
|
|
@@ -779,7 +828,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
779
828
|
{ type: 'function', names: [identifier_1.Identifier.from(['ogrListLayers', "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 },
|
|
780
829
|
{ type: 'function', names: [identifier_1.Identifier.from(['readGDAL', "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: [['fname', 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 },
|
|
781
830
|
{ type: 'function', names: [identifier_1.Identifier.from(['read.dta13', "readstata13" /* PkgName.Readstata13 */])], 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: [['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 },
|
|
782
|
-
{ type: 'function', names:
|
|
831
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("arrow" /* PkgName.Arrow */, ['read_parquet', 'read_feather', 'read_ipc_file', 'read_ipc_stream', 'read_csv_arrow', 'read_tsv_arrow', 'read_delim_arrow', 'read_json_arrow']), 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: [['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 },
|
|
783
832
|
{ type: 'function', names: [identifier_1.Identifier.from(['readShapePoly', "maptools" /* PkgName.Maptools */])], 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: [['fn', 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 },
|
|
784
833
|
{ type: 'function', names: [identifier_1.Identifier.from(['readWorksheetFromFile', "XLConnect" /* PkgName.XlConnect */])], 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: [['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 },
|
|
785
834
|
{ type: 'function', names: [identifier_1.Identifier.from(['readNamedRegionFromFile', "XLConnect" /* PkgName.XlConnect */])], 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: [['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 },
|
|
@@ -834,7 +883,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
834
883
|
{ type: 'function', names: [identifier_1.Identifier.from(['read.dna', "ape" /* PkgName.Ape */])], 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: [['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 },
|
|
835
884
|
{ type: 'function', names: [identifier_1.Identifier.from(['read.FASTA', "ape" /* PkgName.Ape */])], 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: [['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 },
|
|
836
885
|
{ type: 'function', names: [identifier_1.Identifier.from(['read.fasta', "seqinr" /* PkgName.Seqinr */])], 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: [['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 },
|
|
837
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['dump', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.
|
|
886
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['dump', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Get, config: { returnsValue: false, props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['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], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
838
887
|
{ type: 'function', names: [identifier_1.Identifier.from(['write_csv', "readr" /* PkgName.Readr */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, libFn: true, 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], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
839
888
|
{ type: 'function', names: [identifier_1.Identifier.from(['write_csv2', "readr" /* PkgName.Readr */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, libFn: true, 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], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
840
889
|
{ type: 'function', names: [identifier_1.Identifier.from(['write_delim', "readr" /* PkgName.Readr */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, libFn: true, 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], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
@@ -863,7 +912,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
863
912
|
{ type: 'function', names: [identifier_1.Identifier.from(['write_tnt_matrix', "Claddis" /* PkgName.Claddis */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, libFn: true, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['cladistic_matrix', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['file_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 },
|
|
864
913
|
{ type: 'function', names: [identifier_1.Identifier.from(['writeOGR', "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.Writes], sig: [['obj', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['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 },
|
|
865
914
|
{ type: 'function', names: [identifier_1.Identifier.from(['writeGDAL', "rgdal" /* PkgName.Rgdal */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, libFn: true, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['dataset', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['fname', 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 },
|
|
866
|
-
{ type: 'function', names:
|
|
915
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("arrow" /* PkgName.Arrow */, ['write_parquet', 'write_feather', 'write_ipc_file', 'write_ipc_stream', 'write_csv_arrow']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, libFn: true, 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], ['sink', 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 },
|
|
867
916
|
{ type: 'function', names: [identifier_1.Identifier.from(['st_write', "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.Writes], sig: [['obj', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['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 },
|
|
868
917
|
{ type: 'function', names: [identifier_1.Identifier.from(['writePolyShape', "maptools" /* PkgName.Maptools */])], 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: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['fn', 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 },
|
|
869
918
|
{ type: 'function', names: [identifier_1.Identifier.from(['writeNamedRegionToFile', "XLConnect" /* PkgName.XlConnect */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, libFn: true, 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], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
@@ -904,6 +953,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
904
953
|
{ type: 'function', names: [identifier_1.Identifier.from(['h5createFile', "rhdf5" /* PkgName.Rhdf5 */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, libFn: true, 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], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
905
954
|
{ type: 'function', names: [identifier_1.Identifier.from(['write_fst', "fst" /* PkgName.Fst */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, libFn: true, 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], ['path', 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 },
|
|
906
955
|
{ type: 'function', names: [identifier_1.Identifier.from(['qsave', "qs" /* PkgName.Qs */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, libFn: true, 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], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
956
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("yaml" /* PkgName.Yaml */, ['read_yaml', 'yaml.load_file']), 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: [['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 },
|
|
907
957
|
{ type: 'function', names: [identifier_1.Identifier.from(['write_yaml', "yaml" /* PkgName.Yaml */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, libFn: true, 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], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
908
958
|
{ type: 'function', names: [identifier_1.Identifier.from(['write.dna', "ape" /* PkgName.Ape */])], 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: [['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], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
909
959
|
{ type: 'function', names: [identifier_1.Identifier.from(['write.nexus.data', "ape" /* PkgName.Ape */])], 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: [['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], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
@@ -922,27 +972,37 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
922
972
|
{ type: 'function', names: [identifier_1.Identifier.from(['handle', "httr" /* PkgName.Httr */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Opens, built_in_props_1.SemanticCallTag.Network], sig: [['url', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
923
973
|
{ type: 'function', names: [identifier_1.Identifier.from(['oauth_endpoint', "httr" /* PkgName.Httr */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network], sig: [['request', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['authorize', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['access', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['base_url', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
924
974
|
{ type: 'function', names: [identifier_1.Identifier.from(['curl', "curl" /* PkgName.Curl */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Opens, 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], ['open', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['handle', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Handle]] }, assumePrimitive: false },
|
|
925
|
-
{ type: 'function', names: identifier_1.Identifier.fromAll("curl" /* PkgName.Curl */, ['curl_fetch_memory', '
|
|
926
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['
|
|
927
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['
|
|
975
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("curl" /* PkgName.Curl */, ['curl_fetch_memory', 'curl_fetch_stream', 'nslookup', 'curl_escape', 'has_internet']), 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 },
|
|
976
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['curl_fetch_disk', "curl" /* PkgName.Curl */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: Downloads, sig: [['url', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['path', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource | built_in_props_1.ArgProp.Written], ['handle', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Handle]] }, assumePrimitive: false },
|
|
977
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['curl_download', "curl" /* PkgName.Curl */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Invisible, libFn: true, tags: Downloads, 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 | built_in_props_1.ArgProp.Written], ['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], ['handle', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Handle]] }, assumePrimitive: false },
|
|
978
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['multi_download', "curl" /* PkgName.Curl */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: Downloads, sig: [['urls', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['destfiles', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource | built_in_props_1.ArgProp.Written], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
928
979
|
/* `curl_upload` sends a file somewhere, so the file it reads comes first and the address second */
|
|
929
980
|
{ type: 'function', names: [identifier_1.Identifier.from(['curl_upload', "curl" /* PkgName.Curl */])], 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: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['url', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['verbose', 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 },
|
|
930
981
|
{ type: 'function', names: [identifier_1.Identifier.from(['curl_echo', "curl" /* PkgName.Curl */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network], sig: [['handle', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Handle], ['port', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['progress', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
931
982
|
{ type: 'function', names: [identifier_1.Identifier.from(['new_handle', "curl" /* PkgName.Curl */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Opens], sig: [['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
932
983
|
{ 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 },
|
|
933
984
|
{ 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 },
|
|
934
|
-
{ type: 'function', names: identifier_1.Identifier.fromAll("xml2" /* PkgName.Xml2 */, ['download_html', 'download_xml']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Invisible, libFn: true, tags:
|
|
985
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("xml2" /* PkgName.Xml2 */, ['download_html', 'download_xml']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Invisible, libFn: true, tags: Downloads, 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.Written], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
935
986
|
{ 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 },
|
|
936
987
|
{ type: 'function', names: [identifier_1.Identifier.from(['read_html_live', "rvest" /* PkgName.Rvest */]), identifier_1.Identifier.from(['session', "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 },
|
|
937
988
|
{ type: 'function', names: identifier_1.Identifier.fromAll("rvest" /* PkgName.Rvest */, ['session_jump_to', 'session_follow_link', 'session_submit', 'session_back', 'session_forward']), 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.Handle], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
938
989
|
/* an `httr2` request is only a description until one of these performs it */
|
|
939
|
-
{ type: 'function', names: identifier_1.Identifier.fromAll("httr2" /* PkgName.Httr2 */, ['
|
|
990
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("httr2" /* PkgName.Httr2 */, ['req_perform_sequential', 'req_perform_parallel', 'req_perform_iterative', 'req_perform_stream', 'req_perform_connection', 'req_perform_promise']), 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: [['req', 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 },
|
|
940
991
|
{ 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 },
|
|
941
992
|
{ type: 'function', names: identifier_1.Identifier.fromAll("googledrive" /* PkgName.GoogleDrive */, ['drive_get', 'shared_drive_get']), 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 },
|
|
942
|
-
{ type: 'function', names: identifier_1.Identifier.fromAll("googledrive" /* PkgName.GoogleDrive */, ['
|
|
993
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("googledrive" /* PkgName.GoogleDrive */, ['shared_drive_rm']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Invisible, 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 },
|
|
943
994
|
{ type: 'function', names: identifier_1.Identifier.fromAll("aws.s3" /* PkgName.AwsS3 */, ['s3read_using']), 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: [['FUN', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Callee], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['object', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
944
995
|
{ type: 'function', names: identifier_1.Identifier.fromAll("aws.s3" /* PkgName.AwsS3 */, ['s3write_using']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Invisible, libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.Reads], sig: [['FUN', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Callee], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['object', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
945
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['gcs_get_object', "googleCloudStorageR" /* PkgName.GoogleCloudStorageR */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags:
|
|
996
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['gcs_get_object', "googleCloudStorageR" /* PkgName.GoogleCloudStorageR */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: Downloads, sig: [['object_name', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['saveToDisk', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource | built_in_props_1.ArgProp.Written], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
997
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['drive_download', "googledrive" /* PkgName.GoogleDrive */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Invisible, libFn: true, tags: Downloads, sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['path', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource | built_in_props_1.ArgProp.Written], ['type', built_in_props_1.ArgProp.Value], ['overwrite', built_in_props_1.ArgProp.Flag], ['verbose', built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
998
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['req_perform', "httr2" /* PkgName.Httr2 */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: Downloads, sig: [['req', 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 | built_in_props_1.ArgProp.Written], ['verbosity', built_in_props_1.ArgProp.Value], ['mock', built_in_props_1.ArgProp.Value], ['error_call', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
999
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['download.packages', "utils" /* PkgName.Utils */])], 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: [['pkgs', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['destdir', 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 },
|
|
1000
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['download_file', "xfun" /* PkgName.Xfun */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: Downloads, sig: [['url', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['output', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource | built_in_props_1.ArgProp.Written], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1001
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['download', "downloader" /* PkgName.Downloader */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Invisible, libFn: true, tags: Downloads, 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], ['destfile', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource | built_in_props_1.ArgProp.Written]] }, assumePrimitive: false },
|
|
1002
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['pb_download', "piggyback" /* PkgName.Piggyback */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Invisible, libFn: true, tags: Downloads, sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['dest', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource | built_in_props_1.ArgProp.Written], ['repo', 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 },
|
|
1003
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['osf_download', "osfr" /* PkgName.Osfr */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: Downloads, sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['path', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource | built_in_props_1.ArgProp.Written], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1004
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['save_object', "aws.s3" /* PkgName.AwsS3 */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: Downloads, sig: [['object', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['bucket', 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 | built_in_props_1.ArgProp.Written], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1005
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['download_zenodo', "zen4R" /* PkgName.Zen4R */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Invisible, libFn: true, tags: Downloads, sig: [['doi', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['path', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource | built_in_props_1.ArgProp.Written], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
946
1006
|
{ type: 'function', names: [identifier_1.Identifier.from(['AnnotationHub', "AnnotationHub" /* PkgName.AnnotationHub */]), identifier_1.Identifier.from(['ExperimentHub', "ExperimentHub" /* PkgName.ExperimentHub */])], 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: [['hub', 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 },
|
|
947
1007
|
{ type: 'function', names: identifier_1.Identifier.fromAll("devtools" /* PkgName.Devtools */, ['source_url', 'source_gist']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Invisible, libFn: true, hasUnknownSideEffects: 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 },
|
|
948
1008
|
{ type: 'function', names: [identifier_1.Identifier.from(['github_pull', "remotes" /* PkgName.Remotes */])], 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: [['pull', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
@@ -951,8 +1011,10 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
951
1011
|
{ type: 'function', names: identifier_1.Identifier.fromAll("shiny" /* PkgName.Shiny */, ['runGist', 'runUrl', 'httpResponse']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, hasUnknownSideEffects: 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 },
|
|
952
1012
|
{ type: 'function', names: [identifier_1.Identifier.from(['addServer', "rsconnect" /* PkgName.RsConnect */])], 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.Network], sig: [['url', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['name', 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 },
|
|
953
1013
|
{ 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 },
|
|
954
|
-
{ type: 'function', names:
|
|
1014
|
+
{ type: 'function', names: identifier_1.Identifier.fromAllIn(DbPackages, ['dbConnect']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { libFn: true, ambient: DbReadsWrites(DbConnectSig), tags: [built_in_props_1.SemanticCallTag.Opens, built_in_props_1.SemanticCallTag.Database, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads, built_in_props_1.SemanticCallTag.Writes], sig: DbConnectSig }, assumePrimitive: false },
|
|
955
1015
|
/* the calls ending what an opener started, each stating the argument holding the handle */
|
|
1016
|
+
/* opening a connection decides where it reads and whether a write appends, which later uses of it depend on */
|
|
1017
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['open', 'open.connection', 'seek']), 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: [['con', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource | built_in_props_1.ArgProp.Handle], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
956
1018
|
{ 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 },
|
|
957
1019
|
{ 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 },
|
|
958
1020
|
{ 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 },
|
|
@@ -965,9 +1027,24 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
965
1027
|
{ 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 },
|
|
966
1028
|
{ 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 },
|
|
967
1029
|
{ 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 },
|
|
1030
|
+
/* scoped changes of the working directory, the environment variables and the locale; a value that names no entry (a time zone) changes an unknown one */
|
|
1031
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['with_dir', "withr" /* PkgName.Withr */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Configures, scope: { state: 'wd', params: ['new', 'code'], code: 'code' } }, assumePrimitive: false },
|
|
1032
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['local_dir', "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: 'wd', params: ['new', '.local_envir'] } }, assumePrimitive: false },
|
|
1033
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['with_envvar', "withr" /* PkgName.Withr */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Configures, scope: { state: ambient_state_name_1.KeyedState.Env, params: ['new', 'code', 'action'], new: 'new', code: 'code' } }, assumePrimitive: false },
|
|
1034
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['local_envvar', "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: ambient_state_name_1.KeyedState.Env, params: ['.new', '...', 'action', '.local_envir'], new: '.new' } }, assumePrimitive: false },
|
|
1035
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['with_locale', "withr" /* PkgName.Withr */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Configures, scope: { state: ambient_state_name_1.KeyedState.Locale, params: ['new', 'code'], new: 'new', code: 'code' } }, assumePrimitive: false },
|
|
1036
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['local_locale', "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: ambient_state_name_1.KeyedState.Locale, params: ['.new', '...', '.local_envir'], new: '.new' } }, assumePrimitive: false },
|
|
1037
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['with_collate', "withr" /* PkgName.Withr */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Configures, scope: { state: ambient_state_name_1.KeyedState.Locale, params: ['new', 'code'], new: 'new', code: 'code' } }, assumePrimitive: false },
|
|
1038
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['local_collate', "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: ambient_state_name_1.KeyedState.Locale, params: ['new', '.local_envir'], new: 'new' } }, assumePrimitive: false },
|
|
1039
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['with_timezone', "withr" /* PkgName.Withr */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Configures, scope: { state: ambient_state_name_1.KeyedState.Env, params: ['tz', 'code'], new: 'tz', code: 'code' } }, assumePrimitive: false },
|
|
1040
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['local_timezone', "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: ambient_state_name_1.KeyedState.Env, params: ['tz', '.local_envir'], new: 'tz' } }, assumePrimitive: false },
|
|
1041
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['with_language', "withr" /* PkgName.Withr */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Configures, scope: { state: ambient_state_name_1.KeyedState.Env, params: ['lang', 'code'], new: 'lang', code: 'code' } }, assumePrimitive: false },
|
|
1042
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['local_language', "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: ambient_state_name_1.KeyedState.Env, params: ['lang', '.local_envir'], new: 'lang' } }, assumePrimitive: false },
|
|
968
1043
|
{ 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 },
|
|
969
1044
|
{ 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 },
|
|
970
1045
|
{ 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 },
|
|
1046
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['with_preserve_seed', "withr" /* PkgName.Withr */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, scope: { state: 'rng', params: ['code'], code: 'code', preserve: true } }, assumePrimitive: false },
|
|
1047
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['local_preserve_seed', "withr" /* PkgName.Withr */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Invisible, scope: { state: 'rng', params: ['.local_envir'], preserve: true } }, assumePrimitive: false },
|
|
971
1048
|
{ 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 },
|
|
972
1049
|
/* withr closes the connection it is handed when the scope it is called in ends */
|
|
973
1050
|
{ 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 },
|
|
@@ -977,27 +1054,31 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
977
1054
|
{ 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 },
|
|
978
1055
|
{ 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 },
|
|
979
1056
|
{ 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 },
|
|
980
|
-
{ 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 },
|
|
981
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['save.image', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.
|
|
1057
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['save', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { namesIn: ['...', 'list'], 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 },
|
|
1058
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['save.image', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.EnvContents, 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 },
|
|
982
1059
|
{ 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 },
|
|
983
|
-
{ 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 },
|
|
1060
|
+
{ type: 'function', names: [...identifier_1.Identifier.fromAll("fs" /* PkgName.Fs */, ['file_exists', 'dir_exists', 'file_info', 'file_size', 'dir_info']), ...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['file.exists', 'file.size', 'file.info', 'file.mtime', 'Sys.readlink'])], 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 },
|
|
1061
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['dir.exists', "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], sig: [['path', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
1062
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['file.access', "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], sig: [['names', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['mode', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1063
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['file_test', "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: [['op', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['y', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
1064
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['normalizePath', "base" /* PkgName.Base */]), ...identifier_1.Identifier.fromAll("fs" /* PkgName.Fs */, ['path_abs', 'path_real'])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { ambient: { type: "get-working-directory" /* AmbientStateAccessType.GetWorkingDirectory */ }, props: built_in_props_1.CallProp.Ambient, sig: [['path', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['winslash', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['mustWork', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
984
1065
|
{ 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 },
|
|
985
1066
|
{ 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 },
|
|
986
1067
|
{ 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 },
|
|
987
1068
|
{ 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 },
|
|
988
1069
|
{ 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 },
|
|
989
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['download.file', "utils" /* PkgName.Utils */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, tags:
|
|
1070
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['download.file', "utils" /* PkgName.Utils */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, tags: Downloads, 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 | built_in_props_1.ArgProp.Written]] }, assumePrimitive: false },
|
|
990
1071
|
{ 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 },
|
|
991
1072
|
{ 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 },
|
|
992
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['expression', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.
|
|
1073
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['expression', "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: true },
|
|
993
1074
|
{ 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 },
|
|
994
1075
|
{ 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 },
|
|
995
1076
|
{ 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 },
|
|
996
1077
|
/* they read the state they set, so both bits apply */
|
|
997
1078
|
{ 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 },
|
|
998
1079
|
/* `Sys.putenv` is defunct in current R, older scripts still use it */
|
|
999
|
-
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['Sys.setenv', 'Sys.putenv']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { ambient: { type: "set-keyed" /* AmbientStateAccessType.SetKeyed */, state: ambient_state_name_1.KeyedState.Env, keys: { from: 'argument-names' } },
|
|
1000
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['Sys.unsetenv', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { ambient: SetsEntryNamedBy(ambient_state_name_1.KeyedState.Env, ['x'], 'x'),
|
|
1080
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['Sys.setenv', 'Sys.putenv']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { ambient: { type: "set-keyed" /* AmbientStateAccessType.SetKeyed */, state: ambient_state_name_1.KeyedState.Env, keys: { from: 'argument-names' } }, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Configures, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1081
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['Sys.unsetenv', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { ambient: SetsEntryNamedBy(ambient_state_name_1.KeyedState.Env, ['x'], 'x'), props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Configures, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1001
1082
|
{ type: 'function', names: [identifier_1.Identifier.from(['Sys.setlocale', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { ambient: SetsEntryNamedBy(ambient_state_name_1.KeyedState.Locale, ['category', 'locale'], 'category', { fallback: 'LC_ALL' }), hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Configures, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1002
1083
|
/* the language is the environment variable `LANGUAGE`, which the translations of messages follow */
|
|
1003
1084
|
{ type: 'function', names: [identifier_1.Identifier.from(['Sys.setLanguage', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { ambient: [SetsEntry(ambient_state_name_1.KeyedState.Locale, 'LANGUAGE'), SetsEntry(ambient_state_name_1.KeyedState.Env, 'LANGUAGE')], hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Configures, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
@@ -1059,16 +1140,31 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1059
1140
|
{ type: 'function', names: [identifier_1.Identifier.from(['image_write', "magick" /* PkgName.Magick */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Invisible, 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 },
|
|
1060
1141
|
{ 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 },
|
|
1061
1142
|
{ 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 | built_in_props_1.CallProp.Invisible, 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 },
|
|
1143
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("grDevices" /* PkgName.GrDevices */, ['dev.cur', 'dev.list', 'dev.size', 'dev.capabilities']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Ambient, libFn: true, ambient: ReadDevices, tags: [built_in_props_1.SemanticCallTag.Graphics], sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1062
1144
|
/* switching the active device makes its graphics state the one in effect */
|
|
1063
1145
|
{ 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 },
|
|
1064
1146
|
{ 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 },
|
|
1065
1147
|
{ 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 | built_in_props_1.CallProp.Invisible, sig: [['path', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1066
|
-
|
|
1148
|
+
/* it changes into a directory that has to exist, so it reads the files as well */
|
|
1149
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['setwd', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { ambient: { type: "set-working-directory" /* AmbientStateAccessType.SetWorkingDirectory */ }, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Ambient | built_in_props_1.CallProp.Configures, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: [['dir', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
1067
1150
|
/* `Sys.umask()` only reports the mask, a mode sets it and hands back the old one invisibly */
|
|
1068
1151
|
{ type: 'function', names: [identifier_1.Identifier.from(['Sys.umask', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { ambient: { type: "set-state" /* AmbientStateAccessType.SetState */, state: ambient_state_name_1.AmbientStateName.umask, queryWithoutArguments: true }, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Configures, sig: [['mode', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1069
1152
|
{ 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 },
|
|
1153
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['RNGversion', "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.Invisible | built_in_props_1.CallProp.Configures, tags: [built_in_props_1.SemanticCallTag.Random], sig: [['vstr', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1070
1154
|
{ 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 },
|
|
1071
1155
|
{ 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 },
|
|
1156
|
+
/* a callback runs after every later top-level call, or when the hook fires, and may change any state */
|
|
1157
|
+
/* where packages are found decides which version a later `library` attaches */
|
|
1158
|
+
/* Python code may do anything, and `source_python` binds what it defines in R */
|
|
1159
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("reticulate" /* PkgName.Reticulate */, ['source_python', 'py_run_file']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, readAllArguments: true, hasUnknownSideEffects: true, 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], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1160
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['py_run_string', "reticulate" /* PkgName.Reticulate */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, hasUnknownSideEffects: true, sig: [['code', 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 },
|
|
1161
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['get', "config" /* PkgName.Config */])], 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: [['value', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['config', 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], ['use_parent', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1162
|
+
/* restoring or loading a project changes the library and the search path, a snapshot writes the lockfile */
|
|
1163
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("renv" /* PkgName.Renv */, ['restore', 'init', 'activate', 'rebuild', 'load', 'install', 'update']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Configures, sig: [['project', 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 },
|
|
1164
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['snapshot', "renv" /* PkgName.Renv */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { libFn: true, props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['project', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['library', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['lockfile', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
1165
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['.libPaths', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Configures, ambient: { type: "set-state" /* AmbientStateAccessType.SetState */, state: ambient_state_name_1.AmbientStateName.libPaths, queryWithoutArguments: true }, sig: [['new', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['include.site', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1166
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['addTaskCallback', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Configures, sig: [['f', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Callee], ['data', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['name', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1167
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['setHook', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Configures, sig: [['hookName', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['value', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Callee], ['action', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1072
1168
|
{ type: 'function', names: [identifier_1.Identifier.from(['trace', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['what', built_in_props_1.ArgProp.Value], ['tracer', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['exit', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['at', built_in_props_1.ArgProp.Value], ['print', built_in_props_1.ArgProp.Flag], ['signature', built_in_props_1.ArgProp.Value], ['where', built_in_props_1.ArgProp.Value], ['edit', built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1073
1169
|
/* `environment()` without an argument is the frame the call sits in, which is how `as.list(environment())` gets at every argument */
|
|
1074
1170
|
{ type: 'function', names: [identifier_1.Identifier.from(['environment', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, readsFrame: true, frame: built_in_props_1.ArgProp.Value, tags: [built_in_props_1.SemanticCallTag.Frames], sig: [['fun', built_in_props_1.ArgProp.Handle | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: true },
|
|
@@ -1126,7 +1222,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1126
1222
|
processor: built_in_proc_name_1.BuiltInProcName.Source,
|
|
1127
1223
|
config: { includeFunctionCall: true, forceFollow: false, props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads, built_in_props_1.SemanticCallTag.Eval],
|
|
1128
1224
|
sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource | built_in_props_1.ArgProp.Injectable], ['local', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['echo', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['print.eval', built_in_props_1.ArgProp.Flag], ['exprs', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable]] }, assumePrimitive: false },
|
|
1129
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['sys.source', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.
|
|
1225
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['sys.source', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Source, config: { includeFunctionCall: true, envIn: 'envir', props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads, built_in_props_1.SemanticCallTag.Eval], sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource | built_in_props_1.ArgProp.Injectable], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Written]] }, assumePrimitive: false },
|
|
1130
1226
|
{ type: 'function', names: ['['], processor: built_in_proc_name_1.BuiltInProcName.Access, config: { treatIndicesAsString: false, props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
1131
1227
|
{ type: 'function', names: ['[['], processor: built_in_proc_name_1.BuiltInProcName.Access, config: { treatIndicesAsString: false, resolveField: true, props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Element },
|
|
1132
1228
|
/* the field is a name rather than a value, so it is never evaluated */
|
|
@@ -1148,6 +1244,16 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1148
1244
|
/* `require` attaches like `library`, but answers FALSE instead of failing when the package is missing */
|
|
1149
1245
|
{ type: 'function', names: [identifier_1.Identifier.from(['require', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Library, config: { ambient: LibrarySearchPath, 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 },
|
|
1150
1246
|
{ type: 'function', names: [identifier_1.Identifier.from(['attachNamespace', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Library, config: { ambient: SetsEntryNamedBy(ambient_state_name_1.KeyedState.SearchPath, ['ns', 'pos', 'depends', 'exclude', 'include.only'], 'ns'), 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 },
|
|
1247
|
+
/* loaders taking several packages at once, each attached as by `library` */
|
|
1248
|
+
/* a preference puts the preferred function on top of the search path */
|
|
1249
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("conflicted" /* PkgName.Conflicted */, ['conflict_prefer', 'conflicts_prefer']), processor: built_in_proc_name_1.BuiltInProcName.Prefer, config: { libFn: true, ambient: { type: "set-keyed" /* AmbientStateAccessType.SetKeyed */, state: ambient_state_name_1.KeyedState.SearchPath, keys: { from: 'constant', key: '.conflicts' } }, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Configures, tags: [built_in_props_1.SemanticCallTag.AttachesPackage], sig: [['...', built_in_props_1.ArgProp.NoDefault]] }, assumePrimitive: false },
|
|
1250
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("conflicted" /* PkgName.Conflicted */, ['conflict_prefer_all', 'conflict_prefer_matching']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Configures, sig: [['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1251
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['needs', "needs" /* PkgName.Needs */]), identifier_1.Identifier.from(['prioritize', "needs" /* PkgName.Needs */])], processor: built_in_proc_name_1.BuiltInProcName.Library, config: { libFn: true, packagesInDots: true, namesInDots: true, ambient: LoaderSearchPath(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] }, assumePrimitive: false },
|
|
1252
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['groundhog.library', "groundhog" /* PkgName.Groundhog */])], processor: built_in_proc_name_1.BuiltInProcName.Library, config: { libFn: true, formals: ['pkg', 'date'], ambient: LoaderSearchPath(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] }, assumePrimitive: false },
|
|
1253
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['p_load', "pacman" /* PkgName.Pacman */])], processor: built_in_proc_name_1.BuiltInProcName.Library, config: { packagesInDots: true, evaluatedIn: 'char', ambient: LoaderSearchPath(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] }, assumePrimitive: false },
|
|
1254
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['shelf', "librarian" /* PkgName.Librarian */])], processor: built_in_proc_name_1.BuiltInProcName.Library, config: { packagesInDots: true, stripRepo: true, ambient: LoaderSearchPath(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] }, assumePrimitive: false },
|
|
1255
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("xfun" /* PkgName.Xfun */, ['pkg_attach', 'pkg_attach2']), processor: built_in_proc_name_1.BuiltInProcName.Library, config: { packagesInDots: true, characterOnly: true, ambient: LoaderSearchPath(false), 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] }, assumePrimitive: false },
|
|
1256
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['libraries', "easypackages" /* PkgName.EasyPackages */])], processor: built_in_proc_name_1.BuiltInProcName.Library, config: { packagesInDots: true, characterOnly: true, ambient: LoaderSearchPath(false), props: built_in_props_1.CallProp.Scope, tags: [built_in_props_1.SemanticCallTag.LoadsPackage, built_in_props_1.SemanticCallTag.AttachesPackage] }, assumePrimitive: false },
|
|
1151
1257
|
{ 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 },
|
|
1152
1258
|
/* other than `requireNamespace`, it hands back the namespace visibly */
|
|
1153
1259
|
{ 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 },
|
|
@@ -1274,7 +1380,8 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1274
1380
|
/* attach injects an environment's contents into the search path; detach reverses it (treated as unknown side effect) */
|
|
1275
1381
|
{ type: 'function', names: [identifier_1.Identifier.from(['globalVariables', "utils" /* PkgName.Utils */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.Declares], sig: [['names', built_in_props_1.ArgProp.NoDefault], ['package', 0], ['add', 0]] }, assumePrimitive: false },
|
|
1276
1382
|
{ type: 'function', names: [identifier_1.Identifier.from(['attach', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Attach, config: { ambient: AttachSearchPath, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope, sig: [['what', built_in_props_1.ArgProp.NoDefault], ['pos', 0], ['name', 0], ['warn.conflicts', 0]] }, assumePrimitive: false },
|
|
1277
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['
|
|
1383
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['unloadNamespace', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Detach, config: { ambient: SetsEntryNamedBy(ambient_state_name_1.KeyedState.SearchPath, ['ns'], 'ns'), props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Configures, tags: [built_in_props_1.SemanticCallTag.DetachesPackage], sig: [['ns', 0]] }, assumePrimitive: false },
|
|
1384
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['detach', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Detach, config: { ambient: DetachSearchPath, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Configures, tags: [built_in_props_1.SemanticCallTag.DetachesPackage], sig: [['name', 0], ['pos', 0], ['unload', built_in_props_1.ArgProp.Flag], ['character.only', built_in_props_1.ArgProp.Flag], ['force', built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1278
1385
|
{ type: 'function', names: ['for'], processor: built_in_proc_name_1.BuiltInProcName.ForLoop, config: { props: built_in_props_1.CallProp.Invisible, sig: [['var', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Nse], ['seq', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Forced], ['expr', built_in_props_1.ArgProp.NoDefault]] }, assumePrimitive: true },
|
|
1279
1386
|
{ type: 'function', names: ['repeat'], processor: built_in_proc_name_1.BuiltInProcName.RepeatLoop, config: { props: built_in_props_1.CallProp.Invisible, sig: [['expr', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: true },
|
|
1280
1387
|
{ type: 'function', names: ['while'], processor: built_in_proc_name_1.BuiltInProcName.WhileLoop, config: { props: built_in_props_1.CallProp.Invisible, sig: [['cond', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Atomic], ['expr', built_in_props_1.ArgProp.NoDefault]] }, assumePrimitive: true },
|
|
@@ -1324,7 +1431,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1324
1431
|
{ type: 'function', names: [identifier_1.Identifier.from(['compile', "compiler" /* PkgName.Compiler */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { sig: [['e', built_in_props_1.ArgProp.Alias]] } },
|
|
1325
1432
|
{ type: 'function', names: [identifier_1.Identifier.from(['loadcmp', "compiler" /* PkgName.Compiler */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Invisible, hasUnknownSideEffects: true, sig: [['file', built_in_props_1.ArgProp.NoDefault], ['envir', 0], ['chdir', 0]] } },
|
|
1326
1433
|
{ type: 'function', names: [identifier_1.Identifier.from(['setNames', "stats" /* PkgName.Stats */]), identifier_1.Identifier.from(['setNames', "FastUtils" /* PkgName.FastUtils */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Pure, sig: [['object', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['nm', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] } },
|
|
1327
|
-
{ type: 'function', names: identifier_1.Identifier.fromAll("data.table" /* PkgName.DataTable */, ['setkey', 'setkeyv', 'setindex', 'setindexv', 'setattr']), processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: DataTableSetter },
|
|
1434
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("data.table" /* PkgName.DataTable */, ['setkey', 'setkeyv', 'setindex', 'setindexv', 'setattr', 'set', 'setnafill', 'setalloccol']), processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: DataTableSetter },
|
|
1328
1435
|
{ type: 'function', names: [identifier_1.Identifier.from(['setnames', "data.table" /* PkgName.DataTable */])], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { ...DataTableSetter, tags: [built_in_props_1.SemanticCallTag.Transforms] } },
|
|
1329
1436
|
{
|
|
1330
1437
|
type: 'function',
|
|
@@ -1339,8 +1446,36 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1339
1446
|
assumePrimitive: false
|
|
1340
1447
|
},
|
|
1341
1448
|
/* they create, move, or delete files */
|
|
1342
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['dir.create', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['dir_create', "fs" /* PkgName.Fs */])
|
|
1343
|
-
{ type: 'function', names: identifier_1.Identifier.
|
|
1449
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['dir.create', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['dir_create', "fs" /* PkgName.Fs */])], 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: [['path', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1450
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['unlink', "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.Resource], ['recursive', built_in_props_1.ArgProp.Flag], ['force', built_in_props_1.ArgProp.Flag], ['expand', built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1451
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['Sys.chmod', "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: [['paths', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['mode', built_in_props_1.ArgProp.Flag], ['use_umask', built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1452
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['file.create', "base" /* PkgName.Base */]), ...identifier_1.Identifier.fromAll("fs" /* PkgName.Fs */, ['file_create', 'file_touch'])], 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.Resource], ['showWarnings', built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1453
|
+
{ type: 'function', names: [...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['file.remove', 'Sys.junction']), ...identifier_1.Identifier.fromAll("fs" /* PkgName.Fs */, ['file_delete', 'dir_delete', 'link_delete'])], 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 },
|
|
1454
|
+
/* they read the files of some arguments and write those of others ({@link ArgProp.Written}), an archive's contents land in a directory */
|
|
1455
|
+
/* rendering a document reads it, writes what it renders to (named after the input unless given), and, but for purl, runs its code */
|
|
1456
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['knit', "knitr" /* PkgName.Knitr */]), identifier_1.Identifier.from(['knit_child', "knitr" /* PkgName.Knitr */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, readAllArguments: true, hasUnknownSideEffects: true, tags: CopiesFiles, sig: [['input', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['output', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource | built_in_props_1.ArgProp.Written], ['...', built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1457
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['purl', "knitr" /* PkgName.Knitr */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { libFn: true, tags: CopiesFiles, sig: [['input', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['output', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource | built_in_props_1.ArgProp.Written], ['...', built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1458
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['read_chunk', "knitr" /* PkgName.Knitr */])], 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: [['path', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1459
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['render', "rmarkdown" /* PkgName.Rmarkdown */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, readAllArguments: true, hasUnknownSideEffects: true, tags: CopiesFiles, sig: [['input', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['output_format', built_in_props_1.ArgProp.Flag], ['output_file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource | built_in_props_1.ArgProp.Written], ['...', built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1460
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['quarto_render', "quarto" /* PkgName.Quarto */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, readAllArguments: true, hasUnknownSideEffects: true, tags: CopiesFiles, sig: [['input', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['output_format', built_in_props_1.ArgProp.Flag], ['output_file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource | built_in_props_1.ArgProp.Written], ['...', built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1461
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['file.copy', 'file.link', 'file.symlink']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { tags: CopiesFiles, sig: [['from', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['to', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource | built_in_props_1.ArgProp.Written], ['overwrite', built_in_props_1.ArgProp.Flag], ['recursive', built_in_props_1.ArgProp.Flag], ['copy.mode', built_in_props_1.ArgProp.Flag], ['copy.date', built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1462
|
+
/* a moved file is gone from where it was */
|
|
1463
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['file.rename', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, tags: CopiesFiles, sig: [['from', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['to', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource | built_in_props_1.ArgProp.Written]] }, assumePrimitive: false },
|
|
1464
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['file_move', "fs" /* PkgName.Fs */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Invisible, libFn: true, tags: CopiesFiles, sig: [['path', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['new_path', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource | built_in_props_1.ArgProp.Written]] }, assumePrimitive: false },
|
|
1465
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['file.append', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { tags: CopiesFiles, sig: [['file1', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource | built_in_props_1.ArgProp.Written], ['file2', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
1466
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("fs" /* PkgName.Fs */, ['file_copy', 'dir_copy', 'link_create']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Invisible, libFn: true, tags: CopiesFiles, sig: [['path', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['new_path', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource | built_in_props_1.ArgProp.Written], ['...', built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1467
|
+
/* only listing the contents (`list = TRUE`) shows the result */
|
|
1468
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['unzip', "utils" /* PkgName.Utils */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Invisible, tags: CopiesFiles, sig: [['zipfile', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['files', built_in_props_1.ArgProp.Value], ['list', built_in_props_1.ArgProp.Flag], ['overwrite', built_in_props_1.ArgProp.Flag], ['junkpaths', built_in_props_1.ArgProp.Flag], ['exdir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource | built_in_props_1.ArgProp.Written], ['unzip', built_in_props_1.ArgProp.Value], ['setTimes', built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1469
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['untar', "utils" /* PkgName.Utils */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Invisible, tags: CopiesFiles, sig: [['tarfile', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['files', built_in_props_1.ArgProp.Value], ['list', built_in_props_1.ArgProp.Flag], ['exdir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource | built_in_props_1.ArgProp.Written], ['compressed', built_in_props_1.ArgProp.Flag], ['extras', built_in_props_1.ArgProp.Value], ['verbose', built_in_props_1.ArgProp.Flag], ['restore_times', built_in_props_1.ArgProp.Flag], ['support_old_tars', built_in_props_1.ArgProp.Flag], ['tar', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1470
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['zip', "utils" /* PkgName.Utils */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Invisible, tags: CopiesFiles, sig: [['zipfile', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource | built_in_props_1.ArgProp.Written], ['files', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['flags', built_in_props_1.ArgProp.Flag], ['extras', built_in_props_1.ArgProp.Value], ['zip', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1471
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['tar', "utils" /* PkgName.Utils */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Invisible, tags: CopiesFiles, sig: [['tarfile', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource | built_in_props_1.ArgProp.Written], ['files', built_in_props_1.ArgProp.Resource], ['compression', built_in_props_1.ArgProp.Flag], ['compression_level', built_in_props_1.ArgProp.Value], ['tar', built_in_props_1.ArgProp.Value], ['extra_flags', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1472
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("zip" /* PkgName.Zip */, ['zip', 'zipr', 'zip_append', 'zipr_append']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Invisible, libFn: true, tags: CopiesFiles, sig: [['zipfile', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource | built_in_props_1.ArgProp.Written], ['files', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['recurse', built_in_props_1.ArgProp.Flag], ['compression_level', built_in_props_1.ArgProp.Value], ['include_directories', built_in_props_1.ArgProp.Flag], ['root', built_in_props_1.ArgProp.Value], ['mode', built_in_props_1.ArgProp.Flag], ['keys', built_in_props_1.ArgProp.Value], ['password', built_in_props_1.ArgProp.Value], ['encryption', built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1473
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['unzip', "zip" /* PkgName.Zip */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Invisible, libFn: true, tags: CopiesFiles, sig: [['zipfile', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['files', built_in_props_1.ArgProp.Value], ['overwrite', built_in_props_1.ArgProp.Flag], ['junkpaths', built_in_props_1.ArgProp.Flag], ['exdir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource | built_in_props_1.ArgProp.Written], ['encoding', built_in_props_1.ArgProp.Value], ['password', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1474
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['archive_extract', "archive" /* PkgName.Archive */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Invisible, libFn: true, tags: CopiesFiles, sig: [['archive', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['dir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource | built_in_props_1.ArgProp.Written], ['files', built_in_props_1.ArgProp.Value], ['options', built_in_props_1.ArgProp.Value], ['strip_components', built_in_props_1.ArgProp.Value], ['password', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1475
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['archive_write_files', "archive" /* PkgName.Archive */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Invisible, libFn: true, tags: CopiesFiles, sig: [['archive', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource | built_in_props_1.ArgProp.Written], ['files', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['format', built_in_props_1.ArgProp.Flag], ['filter', built_in_props_1.ArgProp.Flag], ['options', built_in_props_1.ArgProp.Value], ['password', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1476
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['archive_write_dir', "archive" /* PkgName.Archive */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Invisible, libFn: true, tags: CopiesFiles, sig: [['archive', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource | built_in_props_1.ArgProp.Written], ['dir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['format', built_in_props_1.ArgProp.Flag], ['filter', built_in_props_1.ArgProp.Flag], ['options', built_in_props_1.ArgProp.Value], ['password', built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Value], ['recursive', built_in_props_1.ArgProp.Flag], ['full.names', built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1477
|
+
/* `destname` defaults to the name with the extension added or dropped */
|
|
1478
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("R.utils" /* PkgName.Rutils */, ['gzip', 'gunzip', 'bzip2', 'bunzip2', 'compressFile', 'decompressFile']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Invisible, libFn: true, tags: CopiesFiles, sig: [['filename', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['destname', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource | built_in_props_1.ArgProp.Written], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1344
1479
|
/* `sink` diverts the output, `par`/`tpar` set (or query) the parameters of the current device */
|
|
1345
1480
|
{ type: 'function', names: [identifier_1.Identifier.from(['sink', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { ambient: { type: "set-state" /* AmbientStateAccessType.SetState */, state: ambient_state_name_1.AmbientStateName.sink }, 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 },
|
|
1346
1481
|
{ 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 | built_in_props_1.CallProp.Invisible, ambient: { type: "set-graphics" /* AmbientStateAccessType.SetGraphics */, queryOnUnnamedStrings: true, queryLinksTo: LinkToLastPlot, keys: { from: 'argument-names', ignore: ['no.readonly'] } }, tags: [built_in_props_1.SemanticCallTag.Graphics], sig: [['...', 0], ['no.readonly', 0]] }, assumePrimitive: false },
|
|
@@ -1370,12 +1505,14 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1370
1505
|
...['install_github', 'install_gitlab', 'install_bitbucket', 'install_url', 'install_git', 'install_svn', 'install_version',
|
|
1371
1506
|
'install_bioc', 'install_cran', 'install_dev', 'update_packages']
|
|
1372
1507
|
.flatMap(f => [identifier_1.Identifier.from([f, "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from([f, "devtools" /* PkgName.Devtools */])]),
|
|
1508
|
+
...identifier_1.Identifier.fromAll("pak" /* PkgName.Pak */, ['pak', 'pkg_install', 'local_install', 'lockfile_install', 'pkg_remove']),
|
|
1509
|
+
...identifier_1.Identifier.fromAll("BiocManager" /* PkgName.BiocManager */, ['install'])
|
|
1373
1510
|
],
|
|
1374
1511
|
processor: built_in_proc_name_1.BuiltInProcName.Default,
|
|
1375
1512
|
config: { hasUnknownSideEffects: true, libFn: true, props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes] },
|
|
1376
1513
|
assumePrimitive: false
|
|
1377
1514
|
},
|
|
1378
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['on.exit', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.RegisterHook, config: { props: built_in_props_1.CallProp.Invisible, hook: hooks_1.KnownHooks.OnFnExit, args: { expr: { idx: 0, name: 'expr' }, add: { idx: 1, name: 'add', default: false }, after: { idx: 2, name: 'after', default: true } }, sig: [['expr',
|
|
1515
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['on.exit', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.RegisterHook, config: { props: built_in_props_1.CallProp.Invisible, hook: hooks_1.KnownHooks.OnFnExit, args: { expr: { idx: 0, name: 'expr' }, add: { idx: 1, name: 'add', default: false }, after: { idx: 2, name: 'after', default: true } }, sig: [['expr', built_in_props_1.ArgProp.Nse], ['add', 0], ['after', 0]] }, assumePrimitive: true },
|
|
1379
1516
|
{ type: 'function', names: [identifier_1.Identifier.from(['on_load', "rlang" /* PkgName.Rlang */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.MayPure, sig: [['expr', built_in_props_1.ArgProp.Forced], ['env', built_in_props_1.ArgProp.Value], ['ns', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1380
1517
|
{ type: 'function', names: [identifier_1.Identifier.from(['on_package_load', "rlang" /* PkgName.Rlang */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.MayPure, sig: [['pkg', built_in_props_1.ArgProp.Value], ['expr', built_in_props_1.ArgProp.Forced], ['env', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1381
1518
|
{ type: 'function', names: [identifier_1.Identifier.from(['run_on_load', "rlang" /* PkgName.Rlang */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.MayPure, sig: [['ns', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
@@ -1384,7 +1521,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1384
1521
|
/* the tidy-eval sinks (`!!`, `{{`) are no calls flowR sees, so the text is checked where it turns into code */
|
|
1385
1522
|
{ type: 'function', names: identifier_1.Identifier.fromAll("rlang" /* PkgName.Rlang */, ['parse_expr', 'parse_exprs']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Lang, sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable]] }, assumePrimitive: false },
|
|
1386
1523
|
/* they answer with whatever is on disk when they run */
|
|
1387
|
-
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['list.files', 'dir', 'list.dirs']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads, built_in_props_1.SemanticCallTag.Glob], sig: [['path', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
1524
|
+
{ type: 'function', names: [...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['list.files', 'dir', 'list.dirs']), ...identifier_1.Identifier.fromAll("fs" /* PkgName.Fs */, ['dir_ls'])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads, built_in_props_1.SemanticCallTag.Glob], sig: [['path', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
1388
1525
|
{ type: 'function', names: [identifier_1.Identifier.from(['Sys.glob', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads, built_in_props_1.SemanticCallTag.Glob], sig: [['paths', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
1389
1526
|
/* language objects */
|
|
1390
1527
|
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['enquote', 'call', 'as.call', 'as.expression', 'as.name', 'as.symbol', 'args', 'deparse', 'deparse1']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Lang, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
@@ -1404,8 +1541,10 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1404
1541
|
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['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 },
|
|
1405
1542
|
{ 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 | built_in_props_1.CallProp.Invisible, 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 },
|
|
1406
1543
|
/* ambient state: options, environment variables, the clock, the session itself */
|
|
1407
|
-
{ type: 'function', names: identifier_1.Identifier.
|
|
1544
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['Sys.getenv', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Ambient, ambient: { type: "read-keyed" /* AmbientStateAccessType.ReadKeyed */, state: ambient_state_name_1.KeyedState.Env, keys: { from: 'parameter', signature: ['x', 'unset', 'names', 'allowEmpty'], names: ['x'] } }, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1545
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['Sys.info', 'Sys.getpid', '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 },
|
|
1408
1546
|
{ type: 'function', names: [identifier_1.Identifier.from(['getwd', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { ambient: { type: "get-working-directory" /* AmbientStateAccessType.GetWorkingDirectory */ }, props: built_in_props_1.CallProp.Ambient, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1547
|
+
{ type: 'function', names: [...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['search', 'searchpaths']), ...identifier_1.Identifier.fromAll("utils" /* PkgName.Utils */, ['find', 'apropos'])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { ambient: { type: "read-state" /* AmbientStateAccessType.ReadState */, state: ambient_state_name_1.AmbientStateName.allOf(ambient_state_name_1.KeyedState.SearchPath) }, props: built_in_props_1.CallProp.Ambient, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1409
1548
|
{ 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 },
|
|
1410
1549
|
{ 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 },
|
|
1411
1550
|
/* system commands */
|
|
@@ -1416,7 +1555,18 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1416
1555
|
{ 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 },
|
|
1417
1556
|
{ 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 },
|
|
1418
1557
|
{ 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 },
|
|
1419
|
-
{ type: 'function', names: identifier_1.Identifier.fromAllIn(
|
|
1558
|
+
{ type: 'function', names: identifier_1.Identifier.fromAllIn(DbPackages, ['dbGetQuery', 'dbSendQuery', 'dbSendStatement', 'dbExecute']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.NonDet, ambient: DbReadsWrites(DbConnSig), 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 },
|
|
1559
|
+
{ type: 'function', names: identifier_1.Identifier.fromAllIn(DbPackages, ['dbReadTable', 'dbReadTableArrow', 'dbListTables', 'dbExistsTable', 'dbListFields', 'dbListObjects']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, ambient: DbReads, tags: [built_in_props_1.SemanticCallTag.Database], sig: [['conn', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Handle], ['name', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1560
|
+
{ type: 'function', names: identifier_1.Identifier.fromAllIn(DbPackages, ['dbWriteTable', 'dbWriteTableArrow', 'dbAppendTable', 'dbAppendTableArrow', 'dbCreateTable', 'dbRemoveTable']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Invisible, ambient: DbReadsWrites(DbConnSig), tags: [built_in_props_1.SemanticCallTag.Database], sig: [['conn', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Handle], ['name', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['value', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1561
|
+
/* a transaction decides whether earlier changes stay, a rollback undoes them */
|
|
1562
|
+
{ type: 'function', names: identifier_1.Identifier.fromAllIn(DbPackages, ['dbBegin', 'dbCommit', 'dbRollback', 'dbWithTransaction']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Invisible, ambient: DbReadsWrites(DbConnSig), tags: [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 },
|
|
1563
|
+
/* the pipeline runs `_targets.R` and stores every target as a file, which `tar_read` and `tar_load` (defining the target in the caller) get back */
|
|
1564
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("targets" /* PkgName.Targets */, ['tar_make', 'tar_make_future', 'tar_make_clustermq', 'tar_destroy', 'tar_delete', 'tar_invalidate', 'tar_prune', 'tar_watch']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Invisible, hasUnknownSideEffects: true, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads, built_in_props_1.SemanticCallTag.Writes, built_in_props_1.SemanticCallTag.Glob] }, assumePrimitive: false },
|
|
1565
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("targets" /* PkgName.Targets */, ['tar_read', 'tar_read_raw', 'tar_meta', 'tar_progress', 'tar_objects', 'tar_manifest']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads, built_in_props_1.SemanticCallTag.Glob] }, assumePrimitive: false },
|
|
1566
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("targets" /* PkgName.Targets */, ['tar_load', 'tar_load_raw', 'tar_load_everything']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Invisible, hasUnknownSideEffects: true, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads, built_in_props_1.SemanticCallTag.Glob] }, assumePrimitive: false },
|
|
1567
|
+
/* mocking replaces a function binding, so later calls of it behave differently */
|
|
1568
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("testthat" /* PkgName.Testthat */, ['local_mocked_bindings', 'with_mocked_bindings', 'local_mocked_s3_method', 'with_mocked_s3_method', 'local_mocked_s4_method', 'with_mocked_s4_method', 'local_mocked_r6_class']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Invisible, hasUnknownSideEffects: true }, assumePrimitive: false },
|
|
1569
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("mockery" /* PkgName.Mockery */, ['stub', 'stub_']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Invisible, hasUnknownSideEffects: true }, assumePrimitive: false },
|
|
1420
1570
|
{ type: 'function', names: identifier_1.Identifier.fromAll("DBI" /* PkgName.Dbi */, ['dbQuoteString', 'dbQuoteLiteral', 'dbQuoteIdentifier']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Pure, sig: [['conn', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Handle], ['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1421
1571
|
{ type: 'function', names: [identifier_1.Identifier.from(['htmlEscape', "htmltools" /* PkgName.HtmlTools */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Pure, sig: [['text', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['attribute', built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1422
1572
|
/* these escape the values they interpolate, but not the template they are handed */
|
|
@@ -1525,7 +1675,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1525
1675
|
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['readLines', "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], sig: [['con', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['n', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['ok', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['warn', 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], ['skipNul', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1526
1676
|
{ 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 },
|
|
1527
1677
|
{ 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 },
|
|
1528
|
-
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['download.file', "utils" /* PkgName.Utils */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, tags:
|
|
1678
|
+
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['download.file', "utils" /* PkgName.Utils */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, tags: Downloads, 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 | built_in_props_1.ArgProp.Written], ['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 },
|
|
1529
1679
|
/* deprecated and defunct functions of base R */
|
|
1530
1680
|
{
|
|
1531
1681
|
type: 'function',
|
|
@@ -1572,8 +1722,11 @@ function getDefaultProcessor(name) {
|
|
|
1572
1722
|
if (name.startsWith(unnamed_call_handling_1.UnnamedFunctionCallPrefix)) {
|
|
1573
1723
|
return built_in_proc_name_1.BuiltInProcName.Unnamed;
|
|
1574
1724
|
}
|
|
1575
|
-
|
|
1576
|
-
|
|
1725
|
+
/* a bare name is what R finds on the default search path, a package's function of that name only once attached */
|
|
1726
|
+
const named = (n, base) => identifier_1.Identifier.getName(n) === name && (!base || r_base_packages_1.AttachedBasePackageSet.has(identifier_1.Identifier.getNamespace(n) ?? "base" /* PkgName.Base */));
|
|
1727
|
+
const matches = (base) => (def) => (def.names.some(n => named(n, base)) && def.type !== 'constant')
|
|
1728
|
+
|| (def.type === 'replacement' && def.suffixes.flatMap(d => def.names.map(n => `${identifier_1.Identifier.getName(n)}${d}`)).includes(name));
|
|
1729
|
+
const fn = (exports.DefaultBuiltinConfig.find(matches(true)) ?? exports.DefaultBuiltinConfig.find(matches(false)));
|
|
1577
1730
|
if (fn?.type === 'replacement') {
|
|
1578
1731
|
return built_in_proc_name_1.BuiltInProcName.Replacement;
|
|
1579
1732
|
}
|