Files
playbook/skills/tsl-api-reference/references/codegen/module/r-interaction.md
T

39 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 第三方交互 / RCOM
## `CoExec`
声明:class
R 通过 COM ProgID `TSExpert.CoExec` 创建天软自动化对象,并远程执行 TSL 语句或函数
<!-- tags: 调用 远程调用 跨进程 组件对象模型 R语言 COM 跨语言调用 -->
### `remoteExecute(statement)`
声明:function
执行天软语句并返回结果
<!-- tags: 调用 远程调用 跨进程 -->
可见性:`public`
| 参数 | 类型 | 说明 |
| ----------- | ------ | --------------------------------------- |
| `statement` | string | 要提交给天软解释器执行的 TSL 语句字符串 |
### `remoteCallFunc(function_name, args)`
声明:function
调用天软函数并返回结果
<!-- tags: 执行 远程调用 跨进程 -->
可见性:`public`
| 参数 | 类型 | 说明 |
| --------------- | ------ | ---------------------- |
| `function_name` | string | 要调用的天软函数名称 |
| `args` | list | 传给目标函数的参数集合 |