r - 从 R 运行 PowerShell 脚本
问题描述
我想从 R studio 运行一个 PowerShell 脚本,但它对我不起作用。我试图添加这个:
system("power shell -command "")
但是脚本被破坏了(“'”'“)
这是我要运行的脚本:
(Get-Content "C:\Users\XXXX\AXXXX\Local\GoogleXXXX\000022.log" -Raw)-replace '[^ -~\t]' | Set-Content XXXX.txt -Force
我怎样才能运行这个脚本?
解决方案
推荐阅读
- python - 如何规范化(最小/最大)python中的特定列?(数据框)
- linux - linux查找目录或文件名包含文本的所有文件
- java - 在 Java Web App 中实现 MSAL 的出发点是什么?
- python - clang-llvm ver 11.0.0 python 绑定似乎不匹配
- flutter - 如何对颤动中的对象列表进行排序?
- indexing - Bigquery:查找在数组中第一次找到指定元素的索引
- floating-point - 浮点数转十进制数
- javascript - 查找字符串中是否有任何字母,如果有则返回 false
- class - 在这种情况下,如何使用 UML 对数据进行建模?
- amazon-web-services - 是否可以在 CodePipeline 中订购 Source 操作?