添加站点扩展后无法 运行 Azure 上的 R 函数
Unable to run R Functions on Azure after adding Site extension
我是 R 的新手,所以我想一定是漏掉了一些简单的东西。
我正在尝试了解如何 运行 R 代码作为 Azure 函数。我按照 this 示例并为了简化我用
替换了 script.r 文件
print("Testing R")
但是当我 运行 这个函数时,我在命令行中看到以下内容:
2017-09-01T14:07:52.388 Function started (Id=c031b7fc-1047-442e-8589-8cc6e7a96b48)
2017-09-01T14:07:54.407 Loading required package: httr
2017-09-01T14:07:54.611 Loading required package: jsonlite
2017-09-01T14:07:54.689 Loading required package: methods
2017-09-01T14:07:55.174 Loading required package: ggplot2
2017-09-01T14:07:57.624 Loading required package: twitteR
2017-09-01T14:07:58.943 Loading required package: rsvg
2017-09-01T14:07:59.366 Loading required package: rjson
2017-09-01T14:07:59.413 Attaching package: 'rjson'
2017-09-01T14:07:59.429 The following objects are masked from 'package:jsonlite':
fromJSON, toJSON
2017-09-01T14:07:59.976 Error: Please install xml2 package
2017-09-01T14:07:59.976 In addition: Warning message:
In strptime(x, fmt, tz = "GMT") : unable to identify current timezone 'C':
please set environment variable 'TZ'
2017-09-01T14:07:59.976 Execution halted
2017-09-01T14:08:00.028 Function completed (Success, Id=c031b7fc-1047-442e-8589-8cc6e7a96b48, Duration=7637ms)
关于我遗漏了什么有什么想法吗?
我也遵循了这个例子,它在我这边运行良好。
您提供的 the doc 中的第 5 步中似乎没有 运行 以下命令。
unzip -n D:\home\SiteExtensions\R-3.3.3x64\R-3.3.3.zip -d D:\home
我是 R 的新手,所以我想一定是漏掉了一些简单的东西。
我正在尝试了解如何 运行 R 代码作为 Azure 函数。我按照 this 示例并为了简化我用
替换了 script.r 文件print("Testing R")
但是当我 运行 这个函数时,我在命令行中看到以下内容:
2017-09-01T14:07:52.388 Function started (Id=c031b7fc-1047-442e-8589-8cc6e7a96b48)
2017-09-01T14:07:54.407 Loading required package: httr
2017-09-01T14:07:54.611 Loading required package: jsonlite
2017-09-01T14:07:54.689 Loading required package: methods
2017-09-01T14:07:55.174 Loading required package: ggplot2
2017-09-01T14:07:57.624 Loading required package: twitteR
2017-09-01T14:07:58.943 Loading required package: rsvg
2017-09-01T14:07:59.366 Loading required package: rjson
2017-09-01T14:07:59.413 Attaching package: 'rjson'
2017-09-01T14:07:59.429 The following objects are masked from 'package:jsonlite':
fromJSON, toJSON
2017-09-01T14:07:59.976 Error: Please install xml2 package
2017-09-01T14:07:59.976 In addition: Warning message:
In strptime(x, fmt, tz = "GMT") : unable to identify current timezone 'C':
please set environment variable 'TZ'
2017-09-01T14:07:59.976 Execution halted
2017-09-01T14:08:00.028 Function completed (Success, Id=c031b7fc-1047-442e-8589-8cc6e7a96b48, Duration=7637ms)
关于我遗漏了什么有什么想法吗?
我也遵循了这个例子,它在我这边运行良好。
您提供的 the doc 中的第 5 步中似乎没有 运行 以下命令。
unzip -n D:\home\SiteExtensions\R-3.3.3x64\R-3.3.3.zip -d D:\home