Code Monkey home page Code Monkey logo

brclib's People

Contributors

matthewgthomas avatar

Watchers

 avatar

brclib's Issues

Install from GitHub emits warnings

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)

Issues about installing an R package from Github

Dear all,

I am trying to install an R package from Github. But I come across the following issue. Does anyone has does how to solve this? Any comments or suggestions would be greatly appreciated. Thanks!

devtools::install_github("gregorkb/QregBB")
Downloading GitHub repo gregorkb/QregBB@master
✔ checking for file ‘/private/var/folders/sq/lj12xtts7r9fbjblz_y8q8dh0000gn/T/RtmpSg1adc/remotes18a031a3335d/gregorkb-QregBB-cf0ee46/DESCRIPTION’ (372ms)
─ preparing ‘QregBB’:
✔ checking DESCRIPTION meta-information ...
─ cleaning src
─ installing the package to process help pages
─ saving partial Rd database (14.9s)
─ cleaning src
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ building ‘QregBB_1.0.tar.gz’

  • installing source package ‘QregBB’ ...
    ** using staged installation
    ** libs
    clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -fPIC -Wall -g -O2 -c QregBB.c -o QregBB.o
    clang -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o QregBB.so QregBB.o -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
    installing to /Library/Frameworks/R.framework/Versions/3.6/Resources/library/00LOCK-QregBB/00new/QregBB/libs
    ** R
    ** byte-compile and prepare package for lazy loading
    ** help
    Error : (converted from warning) /private/var/folders/sq/lj12xtts7r9fbjblz_y8q8dh0000gn/T/Rtmp0W7UGP/Rbuild191c5c79437f/QregBB/man/QregBB-package.Rd:28: All text must be in a section
    ERROR: installing Rd objects failed for package ‘QregBB’
  • removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/QregBB’
    Error: Failed to install 'QregBB' from GitHub:
    (converted from warning) installation of package ‘/var/folders/sq/lj12xtts7r9fbjblz_y8q8dh0000gn/T//RtmpSg1adc/file18a07a8be6ad/QregBB_1.0.tar.gz’ had non-zero exit status

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.