Skip to content

Note: man/*.Rd and NAMESPACE files are required for easy installation from GitHub #163

Closed

Description

@GegznaV

After Make is removed, if we want the users of hyperSpec to have the possibility to install the development version of the package as easy as:

if (!require(remotes)) {install.packages("remotes")}
remotes::install_github("cbeleites/hyperSpec/hyperSpec", ref = "develop")

without any additional configuration and (I think) without installation of Git and Git-LFS, which are needed for developers only (regularly, R packages provide this kind of possibility), the .Rd documentation files should be present in Git repository's man folder. I.e., they should not be Git-ignored. And if they are, the result is:

image

But maybe there is an easy workaround for this issue?


P.S. The code above should work is after PR #159 and/or #162 are merged into develop branch. Meanwhile, you may try code (before the branch enable_codecov is deleted):

remotes::install_github("GegznaV/hyperSpec/hyperSpec", ref = "enable_codecov")

P.P.S. I haven't tried, what is the influence of Git-ignored NAMESPACE file in this kind of installation.

Activity

  1. added
    Topic: documentation 📘
    on Jun 17, 2020
  2. GegznaV commented on Jun 18, 2020

    @GegznaV
    CollaboratorAuthor

    Here comes the answer about the NAMESPACE file. I tried to install package with vignettes from GitHub:

    remotes::install_github(
        "cbeleites/hyperSpec/hyperSpec", ref = "feature/vignettes-in-rmd", 
        dependencies = TRUE, 
        build_vignettes = TRUE, 
        force = TRUE
    )

    The result was:

    √  checking for file 'C:\Users\ViG\AppData\Local\Temp\RtmpmQDDff\remotes5eb477b74b66\cbeleites-hyperSpec-b0cdda1\hyperSpec/DESCRIPTION' (435ms)
    -  preparing 'hyperSpec':
    √  checking DESCRIPTION meta-information ... 
    -  installing the package to build vignettes
             -----------------------------------
    -  installing *source* package 'hyperSpec' ...
       ** using staged installation
       ERROR: a 'NAMESPACE' file is required
    -  removing 'C:/Users/ViG/AppData/Local/Temp/Rtmp2t5HTg/Rinst337c339a5cf5/hyperSpec'
             -----------------------------------
       ERROR: package installation failed

    ERROR: a 'NAMESPACE' file is required


  3. changed the title [-]Note: man/*.Rd files are required for easy installation form GitHub[/-] [+]Note: man/*.Rd and NAMESPACE files are required for easy installation form GitHub[/+] on Jun 18, 2020
  4. cbeleites commented on Jun 20, 2020

    @cbeleites
    Owner

    I think it's best if we discuss & decide Monday on the video call:

    • on the one hand, it's better not to track redundant information
    • on the other hand, it's good to allow easy installation of the development version.

    Some more thoughts:

    • I thought about asking the developers of *devtools to provide an option to run document() from install_github(). Turns out, this has been asked already at least twice:
      Optionally roxygenize (or execute custom R code) before build r-lib/devtools#397 add roxygen2 support for install_github r-lib/devtools#523

      The first time was closed by Hadley with "I think that needs to be handled elsewhere" and the second time as duplicate of the first time.

    • We may refer people to the dev .tar.gz/.zip files generated as artifact in the continuous integration.

      After thinking about this a bit further, this is the option I currently prefer:

      • For users who want to install the latest working develop version, these artifacts are exactly right: they contain everything, and they have passed the checks.
      • For users who want to work on the code, cloning and running document() should be OK.
      • We keep a cleaner/easier to read commit history.
    • DESCRIPTION will always need to be tracked, but it's Collate field is already auto-generated

  5. bryanhanson commented on Jun 22, 2020

    @bryanhanson
    Collaborator

    Decided in video meeting 22 June to use the latest develop build, as .tar.gz package.

    Be sure to update README.md with new instructions.

  6. cbeleites commented on Jun 22, 2020

    @cbeleites
    Owner

    Possibly even .zip file for windows users (available either via github action artifacts or appveyor)

  7. added
    Status: blocked ⛔
    on Jul 5, 2020
  8. cbeleites commented on Jul 16, 2020

    @cbeleites
    Owner

    Decided in video meeting 2020-07-16 to put the development builds to https://r-hyperspec/hySpc.pkgs .
    Users can install them via install.packages(repos = c("r-hyperspec.github.io/hySpc.pkgs/", getOption("repos")).

  9. changed the title [-]Note: man/*.Rd and NAMESPACE files are required for easy installation form GitHub[/-] [+]Note: man/*.Rd and NAMESPACE files are required for easy installation from GitHub[/+] on Jul 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: blocked ⛔Topic: documentation 📘

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions