Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for remote R sessions using svSocket. #115

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

dcharbon
Copy link
Contributor

Includes a new RemoteSession type for connecting to and using remote R
sessions with support for moving data back and forth between a local
fsharp R session and a remote R session. Also includes a type provider
that generates extension methods for the RemoteSession type, adding all R
functions from packages imported using the "open RProvider.{rpackage}"
syntax. The generated extension methods will not work with the current
FSharp compiler, but should be available in a future release of the
compiler.

*)

// Retrieve stock price time series and compute returns
let msft = msftOpens |> RR.log |> RR.diff
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this example work if you don't have the compiler patched to support provided extension methods?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, the example will not work if you don't have the patched compiler or a later compiler version that includes the extension method support.

dcharbon added 4 commits July 31, 2014 11:48
Includes a new RemoteSession type for connecting to and using remote R
sessions with support for moving data back and forth between a local
fsharp R session and a remote R session. Also includes a type provider
that generates extension methods for the RemoteSession type, adding all R
functions from packages imported using the "open RProvider.{rpackage}"
syntax. The generated extension methods will not work with the current
FSharp compiler, but should be available in a future release of the
compiler.
Assignment to variables in a RemoteSession may be done directly
  RR?foo = "foo"
Remote variables may be directly retrieved as RemoteSymbolicExpressions:
  RR?foo
Objects may be cast to local SymbolicExpressions, including
RemoteSymbolicExpressions:
  (32).ToLocalValue()
  (RR?foo).ToLocalValue()
Objects may be cast to RemoteSymbolicExpression:
  (32).ToRemoteValue(SomeRemoteSession)
@tpetricek
Copy link
Member

Am I correct that this is waiting for a release of F# that will include support for generating provided methods? (And do we know if this is going to be in F# vNext, or if that's going to be in an update for VS 2013?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants