我正在使用plumber编写R中的API,理想情况下它将使用它在POST上收到的JSON。但我不能让endpoint POST example这样工作,所以我可能错过了一些明显的东西。 使用例如URL和卷曲我可以做没有问题如下: curl -i -X POST http://plumber.tres.tl/append/append -d "val=50"
但方式实例中,呈现: POST {v
我使用管道工作为一些R函数的简单web-api服务。 我想通过非常像flask is doing it in python through send_file and send_from_directory的R功能提供文件“下载”(在客户端)。 我试图 #* @get /datafile
get_file <- function(){
return(file('path-to-file