Success or Failure of our script written on a certain R package, depends on the starting seed values used in optimization in R. Solution is therefore, to Put the whole block of codes into a "Try and Catch Exception" clauses. Try part is to run the package based on the given starting seed values, in R. Catch exception part is when the former throws errors, then try Different Starting seed values again by randomization of it, and then run the Same R program again based on newest Starting seed value each time. So, to keep doing this Try and Catch Exception steps until you succeed in getting the results from the R package.
Another Term or Condition of our cooperation:
Milestone created has no partial release. Only full release made upon "delivery of fully working codes without errors", to our side.