tnet is an extension package to R that can be downloaded using the CRAN-servers. There are three steps to get tnet up and running:
1: Installing R
R is an open-source package that can be compiled on the vast majority of platforms. There are also pre-compiled versions for Windows (both Win32 and x64), Mac OS X (release 10.5 and above), and Debian, Redhat, Suse, and Ubuntu Linux. To get the source code or the pre-compiled versions, you need to go to www.r-project.org, click on CRAN under Download on the right, select a server close to you, select your operating system (e.g., Windows), click on base, and then click on Download R on the top of the page. Then you need to follow the installation instructions on your screen.
If you are using Windows on a fairly new computer, you might have a 64-bit version of Windows installed instead of the ‘old’ 32-bit version. You can find out which version you have by right-clicking on Computer/My Computer on the Start menu, and selecting Properties. If you have the 64-bit version of Windows installed, I would recommend that you install the 64-bit version of R as more memory will then be available.
For more information, see the R-website.
2: Installing tnet
The standard command for installing packages in R is
install.packages(). To install tnet using this command, you would simply type
install.packages("tnet") and then select a server close to you.
If you are using the Windows version of R, you should be able to install tnet by going to the ‘Package’-menu, opening ‘Install package(s)’, selecting a server close to you, and then, choosing ‘tnet’ from the list.
tnet is in constant development. If you have installed extension packages, I would recomment that you run
update.packages() once in a while to get the lastest version of the installed packages. This command will update any of the extension packages that you might have on your system if a new version is available, including tnet.
3: Loading tnet
The functions within an installed package is not available unless the package is specifically loaded. Everytime a new session (i.e., a window) is opened, the required packages for that session need to be loaded. This is done using a function called library. As shown in the code examples, tnet is loaded by typing
library(tnet) in R.