def rec2latex(r, filename, empty=""):
    """Export a recarray *r* to a LaTeX  table in *filename*"""
    with open(filename, "w") as latex:
        latex.write(s_rec2latex(r, empty=empty))
    return filename