R ingest, code for the proper treatment of NaN and +-Inf.