yihui / xfun

Miscellaneous R functions
https://yihui.org/xfun/
Other
141 stars 28 forks source link

typos #87

Closed spaette closed 4 months ago

spaette commented 4 months ago

dumped repo strings exposed a few typos

@MichaelChirico

Are you inclined to fix these?

automatically containing determine

$ grep -nr automaitcally xfun
xfun/R/cache.R:31:#' under `path` is kept, and all other copies for this `id` is automaitcally
xfun/man/cache_exec.Rd:63:under \code{path} is kept, and all other copies for this \code{id} is automaitcally
$ grep -nr containg xfun
xfun/R/paths.R:380:        'Found more than one path containg the input path "', f, '":\n\n',
$ grep -nr "determin " xfun
xfun/R/paths.R:324:  if (is.null(root)) stop('Cannot determin the root directory of the current project.')
$ 
MichaelChirico commented 4 months ago

Hi @spaette , thanks for finding these. is there a reason to file an issue instead of just filing a PR?

spaette commented 4 months ago

on slow WiFi connection earlier so unable to clone repos

MichaelChirico commented 4 months ago

You might try the GitHub web editor UI, I've had a lot of good experience doing small changes in the past like those you suggest.

yihui commented 4 months ago

Fixed now. Thanks for the report!

spaette commented 4 months ago

web editor

a browser extension is outside my workflow

and running roxygen2::roxygenise() was indicated to regenerate the .Rd file

MichaelChirico commented 4 months ago

there's no extension needed. you can manually edit .Rd files for a handful of typos fixes.

spaette commented 4 months ago

no extension

thought you were referring to GitHub Web IDE

but now presume you were recommending github.dev; which I have no experience with

edit .Rd files

suppose I'm in the habit of using roxygen2