This function would have to call `R CMD SHLIB`. And there should be a function to clean up afterward.