Unless a contrary intention shall appear by the will, such real estate or interest therein as shall be comprised or intended to be comprised in any devise contained in the will, which shall fail or be void by reason of the death of the devisee in the lifetime of the testator without leaving issue of the devisee living at the time of the testator's death, or by reason of the devise being contrary to law or otherwise incapable of taking effect, shall be included in the residuary devise, if any, contained in the will. If a residuary devisee or legatee dies before the testator without leaving issue living at the time of the testator's death, and if there be other residuary devisees or legatees named in the will in the same residuary clause, the other residuary devisees or legatees named in that clause, whether a class or not, shall take at the testator's death the share of the residuary devisee or legatee so dying in like proportions as their shares bear one to another as expressed in the will under the residuary clause.
R.I. Gen. Laws § 33-6-20