Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update README.md

  • Loading branch information...
commit c1176995df511fa9322132440184e615a346e06d 1 parent 08adc74
@hmansell hmansell authored
Showing with 7 additions and 3 deletions.
  1. +7 −3 README.md
View
10 README.md
@@ -5,16 +5,20 @@ An F# type provider for interoperating with [R](http://www.r-project.org/).
What does it do?
================
-The R Provider discovers R packages that are available in your R installation and makes them available as .NET namespaces underneath the parent namespace RProvider. For example, the stats package is available as RProvider.stats. If you open the namespaces you want to use, functions and values will be available as R.name. For example:
+The R Provider discovers R packages that are available in your R installation and makes them available as .NET namespaces underneath the parent namespace RProvider. For example, the stats package is available as RProvider.stats. If you open the namespaces you want to use, functions and values will be available as R.name. For example, consider this F# interactive script:
````
-open namespace R.``base``
+#r "RProvider.dll"
+
+open RProvider
+open RProvider.``base``
let v = R.c(1,2,3)
````
+This creates an R numeric vector containing 1,2,3, and names it v. Note that we had to open the base namespace, since the function 'c' is part of that namespace. You should also open namespace RProvider, because it contains some helper functions.
-
+And because type providers are used by the Visual Studio IDE, you will get intellisense for R functions. You will also get compile-time type-checking that the function exists.
License
=======
Please sign in to comment.
Something went wrong with that request. Please try again.