R.net in Azure Function sandbox

Oct 4 at 2:30 PM
Edited Oct 4 at 2:31 PM
Hi all,
      we have the following issue. We did a project on Azure with R.net inside a Workerrole to execute some R scripts provided by our customer in our application. Now we are moving the execution from Workerrole to Azure Function but we got a bad halt in that transition 'cause, apparently, in the Azure Function sandbox r.net doesn't work properly.

       In particular we installed the R site extensions to our Function App, and we are able to execute a Powershell Azure Function that executes an R script as described here:  
https://github.com/thdeltei/azure-function-r
    Instead, if we tent to execute some R script that requires to load "stats" or "lattice" inside a C# function with R.net it failed. Microsoft Support told us that it is a restriction related to the AF sandbox:  
https://github.com/projectkudu/kudu/wiki/Azure-Web-App-sandbox

Does someone have kindly some suggestion for an alternative path to workaround this issue?

Thank you in advance an regards

G.