matthewgthomas / brclib

Personal R package for British Red Cross data science work
MIT License
0 stars 0 forks source link

Install from GitHub emits warnings #1

Open tomalrussell opened 4 years ago

tomalrussell commented 4 years ago

Running devtools::install_github("matthewgthomas/brclib") initially failed, apparently because warnings were being converted to errors.

I found a workaround by setting the R_REMOTES_NO_ERRORS_FROM_WARNINGS environment variable to "true". (remotes package docs)

Here's a full trace, successful but including warnings, after running:

> Sys.setenv(R_REMOTES_NO_ERRORS_FROM_WARNINGS="true")
> devtools::install_github("matthewgthomas/brclib")
``` Downloading GitHub repo matthewgthomas/brclib@master √ checking for file '~\AppData\Local\Temp\RtmpQhZKOQ\remotes15c8334562ad\matthewgthomas-brclib-fdf683c/DESCRIPTION' (412ms) - preparing 'brclib': √ checking DESCRIPTION meta-information ... Warning: %USER%/AppData/Local/Temp/RtmpmMlDg7/Rbuild1c845f4d5353/brclib/man/add_risk_quantiles.Rd:32: unexpected section header '\value' Warning: %USER%/AppData/Local/Temp/RtmpmMlDg7/Rbuild1c845f4d5353/brclib/man/add_risk_quantiles.Rd:35: unexpected section header '\description' Warning: %USER%/AppData/Local/Temp/RtmpmMlDg7/Rbuild1c845f4d5353/brclib/man/add_risk_quantiles.Rd:38: unexpected END_OF_INPUT ' ' Warning: %USER%/AppData/Local/Temp/RtmpmMlDg7/Rbuild1c845f4d5353/brclib/man/as_pc.Rd:6: unexpected section header '\usage' Warning: %USER%/AppData/Local/Temp/RtmpmMlDg7/Rbuild1c845f4d5353/brclib/man/as_pc.Rd:9: unexpected section header '\arguments' Warning: %USER%/AppData/Local/Temp/RtmpmMlDg7/Rbuild1c845f4d5353/brclib/man/as_pc.Rd:10: unknown macro '\item' Warning: %USER%/AppData/Local/Temp/RtmpmMlDg7/Rbuild1c845f4d5353/brclib/man/as_pc.Rd:12: unexpected section header '\description' Warning: %USER%/AppData/Local/Temp/RtmpmMlDg7/Rbuild1c845f4d5353/brclib/man/as_pc.Rd:15: unexpected END_OF_INPUT ' ' - checking for LF line-endings in source and make files and shell scripts - checking for empty or unneeded directories - building 'brclib_0.1.0.tar.gz' Installing package into ‘%USER%/OneDrive - Nexus365/Documents/R/win-library/3.6’ (as ‘lib’ is unspecified) * installing *source* package 'brclib' ... ** using staged installation ** R ** byte-compile and prepare package for lazy loading ** help Warning: %USER%/AppData/Local/Temp/Rtmpi2UY6Y/R.INSTALL1e242da973df/brclib/man/add_risk_quantiles.Rd:32: unexpected section header '\value' Warning: %USER%/AppData/Local/Temp/Rtmpi2UY6Y/R.INSTALL1e242da973df/brclib/man/add_risk_quantiles.Rd:35: unexpected section header '\description' Warning: %USER%/AppData/Local/Temp/Rtmpi2UY6Y/R.INSTALL1e242da973df/brclib/man/add_risk_quantiles.Rd:38: unexpected END_OF_INPUT ' ' Warning: %USER%/AppData/Local/Temp/Rtmpi2UY6Y/R.INSTALL1e242da973df/brclib/man/as_pc.Rd:6: unexpected section header '\usage' Warning: %USER%/AppData/Local/Temp/Rtmpi2UY6Y/R.INSTALL1e242da973df/brclib/man/as_pc.Rd:9: unexpected section header '\arguments' Warning: %USER%/AppData/Local/Temp/Rtmpi2UY6Y/R.INSTALL1e242da973df/brclib/man/as_pc.Rd:10: unknown macro '\item' Warning: %USER%/AppData/Local/Temp/Rtmpi2UY6Y/R.INSTALL1e242da973df/brclib/man/as_pc.Rd:12: unexpected section header '\description' Warning: %USER%/AppData/Local/Temp/Rtmpi2UY6Y/R.INSTALL1e242da973df/brclib/man/as_pc.Rd:15: unexpected END_OF_INPUT ' ' *** installing help indices converting help for package 'brclib' finding HTML links ... done add_risk_quantiles html as_pc html convert_date html create_lookup_lsoa_lad_county html create_lookup_msoa_lad_county html download_shp html download_wales html get_LSOAs html get_MSOAs html get_brc_colours html get_month_num html get_nhs_colours html grapes-times-times-grapes html load_IMD html load_postcodes html lookup_islands_postcodes html postcode_regex html process_CRVs html read_excel_entirely html round_up html round_up_nice html ** building package indices ** testing if installed package can be loaded from temporary location *** arch - i386 *** arch - x64 ** testing if installed package can be loaded from final location *** arch - i386 *** arch - x64 ** testing if installed package keeps a record of temporary installation path * DONE (brclib) ```