On 20.01.2023 15:53, Ivan Krylov wrote:
В Fri, 20 Jan 2023 08:41:25 -0600
Spencer Graves <spencer.gra...@effectivedefense.org> пишет:
** byte-compile and prepare package for lazy loading
Error in parse(nsFile, keep.source = FALSE, srcfile = NULL) :
1:1: unexpected input
tools::showNonASCIIfile('https://raw.githubusercontent.com/JamesRamsay5/fda/master/NAMESPACE')
# 1: <ef><bb><bf>export(AmpPhaseDecomp,
Your NAMESPACE file starts with a U+FEFF ZERO WIDTH NO-BREAK SPACE.
You'll need to remove it, e.g. by re-creating the first line.
Note that this is also called "byte order mark" (BOM). Tell your editor
not to create files with BOM.
You can also fix in R:
x <- readLines(..., encoding="UTF-8-BOM")
writeLines(x, ......)
Best,
Uwe Ligges
______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel