Nothing contained in this chapter shall be so construed as to restrain the power of the supreme or superior court, or any one of the justices thereof, to issue a writ of habeas corpus at their discretion, and thereupon to bail any person for whatsoever cause he or she may be committed or restrained, or to discharge him or her, as law and justice shall require.
R.I. Gen. Laws § 10-9-30