Trouble loading rworldmap

34 views
Skip to first unread message

dennisl...@gmail.com

unread,
Feb 21, 2016, 3:12:37 PM2/21/16
to Machine Learning Projects for DotNET Developers
I'm having trouble running the provided code for the worldMap.fsx sectin of chapter III.   The statement let @"map = R.joinCountryData2Map(dataframe,"ISO3","Code")  returns
@"WorldMap.fsx(38,11): error FS3033: The type provider 'RProvider.RProvider' reported an error: Loading package rworldmap failed"

the library and the method are called from within R successfully.  Anyone have any ideas?

Adam Pridmore

unread,
Mar 6, 2016, 4:02:33 AM3/6/16
to Machine Learning Projects for DotNET Developers
I had a similar problem. If you look up in the script there's a commented out section that will install the R package called 'rworldmap', so you just need to run that (once?) to install it.

In short run this:

open RProvider.utils
R.install_packages(["rworldmap"])

Adam

Marcel Studer

unread,
Sep 29, 2016, 12:51:29 AM9/29/16
to Machine Learning Projects for DotNET Developers
As an additional step to running 

open RProvider.utils
R.install_packages(["rworldmap"])

I had to close Visual Studio and reopen it to make it work. 
Reply all
Reply to author
Forward
0 new messages