Access a built-in data record sheet
access_sheet.RdA convenience function for accessing the data record sheets included with the
BioCroField R package.
Details
The selected record sheet will be automatically opened by an appropriate
application when open_sheet is set to TRUE.
Several sheets are available:
Log Sheets:
Log sheets are available as PDFs (sheet_type = 'pdf') or Microsoft Word
documents (sheet_type = 'word').
'harvest': A data record sheet for recording information from a crop harvest.
Protocol Sheets:
Protocol sheets are available as PDFs (sheet_type = 'pdf') or Microsoft
Word documents (sheet_type = 'word').
'weighing_tissue': A general protocol for weighing dry tissue.
Crop-Specific Guide Sheets:
Crop-specific guide sheets are only available as PDFs
(sheet_type = 'pdf').
'cowpea_guide''grain_sorghum_guide''maize_guide''soybean_guide'
Examples
# Get the full paths to all available sheets
access_sheet('harvest', open_sheet = FALSE)
#> [1] "/home/runner/work/_temp/Library/BioCroField/sheets/harvest.pdf"
access_sheet('weighing_tissue', open_sheet = FALSE)
#> [1] "/home/runner/work/_temp/Library/BioCroField/sheets/weighing_tissue.pdf"
access_sheet('cowpea_guide', open_sheet = FALSE)
#> [1] "/home/runner/work/_temp/Library/BioCroField/sheets/cowpea_guide.pdf"
access_sheet('grain_sorghum_guide', open_sheet = FALSE)
#> [1] "/home/runner/work/_temp/Library/BioCroField/sheets/grain_sorghum_guide.pdf"
access_sheet('maize_guide', open_sheet = FALSE)
#> [1] "/home/runner/work/_temp/Library/BioCroField/sheets/maize_guide.pdf"
access_sheet('soybean_guide', open_sheet = FALSE)
#> [1] "/home/runner/work/_temp/Library/BioCroField/sheets/soybean_guide.pdf"
# Open the MS Word version of the harvest data sheet
if (FALSE) { # \dontrun{
access_sheet('harvest', sheet_type = 'word')
} # }