r embedding in c compiles but does not run. moving files to folder src.