weatherkit icon indicating copy to clipboard operation
weatherkit copied to clipboard

Error on install

Open ijconlon opened this issue 3 years ago • 3 comments

Appears to be an issue in some of the code. When I try to install the package (remotes::install_github("hrbrmstr/weatherkit")), I get a compile error. The issue appears to be in the aaa.R file on line 9. The assignment statement has a backslash that's causing an error.

Here's the error message I get:

Error in parse(outFile) :  weatherkit/R/aaa.R:9:14: unexpected input
8: 
9: set_names <- \
                ^
ERROR: unable to collate and parse R files for package 'weatherkit'

ijconlon avatar Jul 07 '22 15:07 ijconlon

I get this error, too. Not having much luck with troubleshooting.

bardolater avatar Aug 01 '22 01:08 bardolater

ima fix rn

hrbrmstr avatar Aug 05 '22 10:08 hrbrmstr

pushed a fix just now.

I used the really new \() R function shorthand without forcing the proper R version in the DESCRIPTION. I really shouldn't use that in packages. So I sub'd it for function(). It should work now.

Many thanks for reporting the issue!

i'll close it after a confirmation.

hrbrmstr avatar Aug 05 '22 10:08 hrbrmstr