The same formalities shall be observed as to notice, and the same methods may be employed, in the taking of depositions in perpetual memory as in the taking of other depositions, and the officer taking the deposition shall have the same power and authority as magistrates taking other depositions to compel any person to appeal and depose as provided in this chapter, within this state, in the same manner as to appear and testify in court. In case any person who is entitled to notice of the taking of the deposition shall be or reside outside of this state, the notice may be served by any disinterested person, and such other notice shall be given as the justice to whom the petition was presented may order.
R.I. Gen. Laws § 9-18-13