Skip to content

Devtools fais with cryptic error message #2587

@Unaimend

Description

@Unaimend

Hi, I most definitely made an error during package construction but since devtools fails with a non-helpful error I thought I'd just make an issue:

The following code fails. Maybe there is some way of making the error message more helpful and just to make sure I DO NOT request help with my package here :). Thanks for reading.

(ins)> install_github("Unaimend/cpdBoy", subdir="r_package")
Downloading GitHub repo Unaimend/cpdBoy@HEAD
Error in if (is.na(res)) { : argument is of length zero
(ins)> install_github("https://github.com/Unaimend/cpdBoy/tree/r_package", subdir="r_package")
Downloading GitHub repo Unaimend/cpdBoy@r_package
Error in if (is.na(res)) { : argument is of length zero

To reproduce by yourself:
Follow this tutorial: https://ourcodingclub.github.io/tutorials/writing-r-package/ and do not execute roxygenize()


(ins)td@td-XPS-9320:~$ R --version
R version 4.1.2 (2021-11-01) -- "Bird Hippie"
Copyright (C) 2021 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions