making a simple package to practice but devtools document function errors out with an infinite loop of updating and loading

Viewed 25

Hello I am building a very simple package to just tinker with the building a package.

After using create and adding r files into the package, I added some documentation to one of the function to see if I can see any rd files in the man folder in the package. See below:

##' Add up two numbers (Description)
##'
##' We want to add up two numbers, blalala... (Details)
##' @title add two numbers
##' @param x first number
##' @param y second number
##' @return sum of two numbers
##' @author Caleb
##' @export
##' @examples
##' f(1,2)
f <- function(x, y) x + y

After saving the r file above, I tried devtools::document() in the package folder as the working directory.

Instead of making any documentations in .rd file, the console is keeping looping between updating and loading the package.

I am not sure what the problem is. enter image description here

Thank you for taking the time.

0 Answers
Related