Adds some formatting for documentation and an example in the case of writeMetFile() while I was there, adding links to other functions or packages where appropriate and formatting code using \code{} tags
Enables byte compiling on installation, which allows for the removal of the compiler::cmpfun() in LoadAPSIMouts.R
Adds "Encoding: UTF-8" to DESCRIPTION to build documentation properly
My main motivation was to be able to suppress messages when generating .met files using the nasapower package that has a create_met() function that calls writeMetFile(). I just made some of the other changes since I thought they could be helpful.
The package passes local checks on macOS with R 3.5.1.
This PR does the following things:
replaces
print()
withmessage()
orwarning()
where appropriate such that any messages can be suppressed by usingsuppressMessages()
. See this SO thread for more: https://stackoverflow.com/questions/36699272/why-is-message-a-better-choice-than-print-in-r-for-writing-a-packageAdds some formatting for documentation and an example in the case of
writeMetFile()
while I was there, adding links to other functions or packages where appropriate and formatting code using\code{}
tagsEnables byte compiling on installation, which allows for the removal of the
compiler::cmpfun()
in LoadAPSIMouts.RAdds "Encoding: UTF-8" to DESCRIPTION to build documentation properly
My main motivation was to be able to suppress messages when generating .met files using the nasapower package that has a
create_met()
function that callswriteMetFile()
. I just made some of the other changes since I thought they could be helpful.The package passes local checks on macOS with R 3.5.1.