[R-pkg-devel] Unexpected symbol when checking package examples
Peter Dalgaard
pd@lgd @ending from gm@il@com
Mon Nov 12 00:20:34 CET 2018
Not just a capitalization issue (mertools vs. merTools)?
Barring that, maybe locale trouble? Can you also do things like
LC_ALL=C R < merTools-Ex.R
?
Also, check for lines starting with "else" (I think you shouldn't be able to run it line-by-line if that was the issue, though).
-pd
> On 11 Nov 2018, at 21:39 , Jared Knowles <jknowles using gmail.com> wrote:
>
> Hi!
>
> I have a bit of a weird issue when I'm trying to check my package merTools
> (source repo available here: https://github.com/jknowles/merTools
>
> On Windows and Linux builds for R-release and R-devel, when R CMD CHECK
> checks examples, it returns the following error below:
>
> Warning: parse error in file 'merTools-Ex.R':
> 1: unexpected symbol
> 117: cleanEx()
> 118: nameEx
>
>
> Upon inspecting the example file generated by R CMD CHECK (mertools-Ex.R) -
> it contains only valid R code. I can run it line by line or source the
> whole file in R without any errors. But, during the check process, this
> error occurs.
>
> The functions cleanEx() and nameEx() appear to be created as part of the
> checking process.
>
> I have not changed the examples in the code since the last time I ran R CMD
> CHECK so I am quite confident that the example code for all functions is
> valid R code.
>
> Any ideas on what might be the source of this problem?
>
> Thanks!
> Jared
>
>
>
> Jared Knowles
> President, Civilytics Consulting LLC
> www.jaredknowles.com
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
--
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Office: A 4.23
Email: pd.mes using cbs.dk Priv: PDalgd using gmail.com
More information about the R-package-devel
mailing list