edits to pass R CMD build