Closed munik closed 10 months ago
Try putting two back ticks " ` " around the package name.
#r "nuget: RProvider"
open RProvider
// For interactive printing
fsi.AddPrinter FSIPrinters.rValue
// To fix a problem tracked in R.NET https://github.com/rdotnet/rdotnet/issues/151
R.eval(R.parse(text="""Sys.setenv(PATH = paste("C:/Program Files/R/R-4.3.1/bin/x64", Sys.getenv("PATH"), sep=";"))"""))
open RProvider.``lsr``
R.aad([1.0; 3.0; 6.0])
// val it: RDotNet.SymbolicExpression = [1] 1.777778
@nhirschey Oh, duh. Thank you! That worked
Describe the bug There's an lsr package which allows the computation of Cohen's d. However, due to lsr being a reserved keyword, I can't
open RProvider.lsr
. If I ignore the warning with#nowarn "62"
the warning about it being a reserved keyword goes away, but then I still get FS0010 "Unexpected infix operator in open declaration"To Reproduce Steps to reproduce the behavior:
open RProvider.lsr
. You'll get a warning and an error:#nowarn "62"
at the top of the file. FS0062 but you still get FS0010 and the project will not compile.Expected behavior I should somehow be able to reference the lsr package.
Environment (please complete the following information):