Difference between revisions of "R console tab"

From visone manual
Jump to navigation Jump to search
 
Line 1: Line 1:
 
'''The R console tab has been removed from visone after version 2.6.3. In visone version 2.6.4, or newer, the [[Console|R console]] can be opened by clicking on the [[File:console.png|link=console]] icon in the [[GUI#toolbar|toolbar]].'''
 
'''The R console tab has been removed from visone after version 2.6.3. In visone version 2.6.4, or newer, the [[Console|R console]] can be opened by clicking on the [[File:console.png|link=console]] icon in the [[GUI#toolbar|toolbar]].'''
 +
 +
'''Important note: Due to recent changes in R and/or Rserve the connection will not be usable with the current R versions (> 2.13). This problem is limited to Windows and Macintosh. So please ensure that your R version is not later than 2.13. For more info see [[option_dialog#R_-_connection|the R connection setup]]. '''
  
 
The R console tab enables to send network data from visone to R (using the igraph package) and vice versa. Refer to [[option_dialog#R_-_connection|visone's option dialog]] to get more information on how to set up the visone R connection. The visone R interface is illustrated in the [[R_console_(tutorial)|tutorial on ''using visone's R console'']].
 
The R console tab enables to send network data from visone to R (using the igraph package) and vice versa. Refer to [[option_dialog#R_-_connection|visone's option dialog]] to get more information on how to set up the visone R connection. The visone R interface is illustrated in the [[R_console_(tutorial)|tutorial on ''using visone's R console'']].

Latest revision as of 12:02, 19 July 2012

The R console tab has been removed from visone after version 2.6.3. In visone version 2.6.4, or newer, the R console can be opened by clicking on the Console.png icon in the toolbar.

Important note: Due to recent changes in R and/or Rserve the connection will not be usable with the current R versions (> 2.13). This problem is limited to Windows and Macintosh. So please ensure that your R version is not later than 2.13. For more info see the R connection setup.

The R console tab enables to send network data from visone to R (using the igraph package) and vice versa. Refer to visone's option dialog to get more information on how to set up the visone R connection. The visone R interface is illustrated in the tutorial on using visone's R console.

tab

  • r name: defines the name of the igraph network variable in R that the visone network is assigned to (by default this is the name that was assigned to the network in visone...)
  • send active net: send the network from the active visone tab to R, creating an igraph network variable with the specified r name (this will open the console, if it has not been shown yet)
  • show r variables: refresh the overview of network objects that are available in R (shown below the refresh button)
  • load selected net: load the network object that is selected in the overview from R to a new visone tab (the name of the network will be the name of the R object; the asterisk reminds you, that it has not been saved yet); alternatively you can double-click on the according network object in the overview
  • show console: this button is used to (re)show the console without sending a network


console

There are three tabs displaying different messages regarding the R connection:

  • visone: all messages that originate from visone
  • user: all messages that originate from user input in the console
  • all: both, user and visone messages

At the bottom of the console you find the

  • input field that can be used to invoke any R commands
  • close button that closes the R console window (but not the connection to R)

please note that whenever you want to install new libraries or load installed libraries and do not use the default library location, you have to give it as a parameter, i.e.,

 library(sna, lib.loc="C:/R-libs")

or

 install.packages("sna", dependencies=T, lib="C:/R-libs")

where lib.loc (respectively lib) has to be set to the library location configured in the R connection setup.