r embedding in c compiles but does not run. submitted to stackoverflow