In case the testator, by making a specific devise or bequest, has virtually exempted a devisee or legatee from liability to contribute with the others for the payment of debts, or if by any other provisions in his or her will he or she has prescribed or required an appropriation of his or her estate different from that prescribed in § 33-6-25, his or her property shall be appropriated and applied in conformity with the will, so far as such appropriation and application can be made without affecting the liability of his or her whole estate for the payment of his or her debts and the charges of settling his or her estate.
R.I. Gen. Laws § 33-6-26