devtools icon indicating copy to clipboard operation
devtools copied to clipboard

Devtools fais with cryptic error message

Open Unaimend opened this issue 1 year ago • 0 comments

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)

Unaimend avatar Nov 18 '24 14:11 Unaimend