Read local csv in plumber API
问题 I want to read and process a csv file by R using plumber. So far I found an ongoing discussion regarding file uploads in plumber on GitHub (though regarding binary files) and this SO answer (transforming JSON file), both supposing the use of postBody . I therefore started with this endpoint: library(plumber) #* parse csv file #* @param req the request object #* @post /file function(req) { result <- req$postBody return(result) }) When testing the endpoint using httr , I can read the file as