phillc73 / abettor

An R package for connecting to the online betting exchange Betfair, via their API-NG product, using JSON-RPC.
Other
51 stars 36 forks source link

listRunnerBook Fails to Generate Documentation #42

Closed phillc73 closed 3 years ago

phillc73 commented 3 years ago

When using Roxygen, listRunnerBook fails with the following error:

r$> roxygen2::roxygenise()                                                                                                                                                                           
Loading abettor
Warning: [/home/phillc/Development/Horse Racing/abettor/R/listRunnerBook.R:1] @title Missing name
Warning: The existing 'NAMESPACE' file was not generated by roxygen2, and will not be overwritten.
Warning messages:
1: roxygen2 requires Encoding: UTF-8 
2: In readLines(con, warn = FALSE, n = n, ok = ok, skipNul = skipNul) :
  invalid input found on input connection '/home/phillc/Development/Horse Racing/abettor/R/listRunnerBook.R'
phillc73 commented 3 years ago

Seems to be fixed by adding Encoding: UTF-8 to DESCRIPTION file

See commit: https://github.com/phillc73/abettor/commit/1932d08b7e2e3289255338bd77a3e1431add755f