When an accused person shall have been arrested for failure to appear before a court-martial for trial, the president of the court-martial or summary court officer to whom the charges have been referred for trial may issue a commitment for the confinement of that person pending trial. In these cases, the accused shall be admitted to bail, the amount of bail fixed, and the surety or sureties thereon approved by the president of the court-martial or the summary court officer issuing the commitment. In default of bail, that person shall be confined pending trial. No person shall be kept in confinement pending trial for more than five (5) days.
R.I. Gen. Laws § 30-13-38