The simplified code of my R script is:
library(jsonlite)
function_name <- function(data.json)
{
tmp <- jsonlite::fromJSON(data.json)
}
This runs perfect on my local PC. Then I build a package, upload the package to an ubuntu server and use the function within an OpenCPU/php environment. My package includes further functions stored in mathematic packages like randomForest, e1071, ... All mathematic packages work perfect, but the jsonlite::fromJSON(data.json) interrupts the programme. The same is true for the alternative package rjson. I don't known where to look for the reason of this strange error.