title: R: Warning when building a package
body: <p>In the package I'm writing, I have a "custom" print function for objects of class, say, "myclass". </p>
  
  <pre><code>print.myclass &lt;- { 
    # ... 
    # ...
  }
  </code></pre>
  
  <p>In the print.myclass.Rd file, I have something like this:</p>
  
  <pre><code>\name{print.myclass}
  \alias{print.myclass}
  \alias{print}
  \title{Print method for objects of class \code{myclass}.}
  \description{Display \code{myclass} objects in the console or in \emph{RStudio's Viewer}.}
  \usage{
    \method{print}{myclass}(x, method, \dots)
    print(x, method="some.method", ...)
  }
  </code></pre>
  
  <p>When I run the R CMD check --as-cran, I get the following warning:</p>
  
  <pre><code>* checking for code/documentation mismatches ... WARNING Functions or methods
  with usage in documentation object 'print.summarytools' but not in code:   
  print
  </code></pre>
  
  <p>I must have tried all the possible combinations of trial and error, importing this and erasing that, but I'm hiting a wall. I'm not even sure what "but not in code" means... Are we talking about the R code in the R scripts, or the code in the .Rd file? </p>
  
  <p>I'm hoping someone who's had enough experience building packages could guide me towards the light.</p>
  
  <p>Thx</p>