Working with the TAM Package through SPSS v24 syntax coding.
SOURCE:
https://cran.r-project.org/web/packages/TAM/
http://www.edmeasurement.com.au/resources
http://www.edmeasurementsurveys.com/TAM/Tutorials/
STEP 1:
Get R Essentials for SPSS Statistics v24 (aka R Integration Plug in)
https://developer.ibm.com/predictiveanalytics/downloads/
https://github.com/IBMPredictiveAnalytics/R_Essentials_Statistics/releases?cm_mc_uid=70049326057814884026378&cm_mc_sid_50200000=1495098798
(If you have already install R Essentials you may need to uninstall it, as per the support reference below).
Support Reference: http://www-01.ibm.com/support/docview.wss?uid=swg1PI73899
“Steps to perform:
1. Uninstall the R Essentials for Statistics 24 FP1.
2. Download R 3.2.5 from R web site, and install it.
R version 3.2.5 is available from http://www.r-project.org/. You can also download it directly from ftp://ftp.stat.math.ethz.ch/Software/CRAN/bin/windows/base/old/.
3. Reinstall the R Essentials for 24 FP1, and select R 3.2.5 as R home folder upon installation of the Essentials.”
STEP 2:
Get R Project version (3.2.5)
The TAM package (2.1-43) needs R Project version 3.2.5.
This older version of R Project can be located here:
https://cran.r-project.org/bin/windows/base/old/
Download the version and install R Project onto your machine.
Check that R Project works.
STEP 3:
Get the “TAM” Package (2.1-43) via R Project -
VIA PACKAGES --> INSTALL Package(s)
You also need to load the packages “CDM” and “mvtnorm” -
VIA PACKAGES --> INSTALL Package(s)
Unfortunately, it seems you also need to load the package “polycor”.
https://cran.r-project.org/web/packages/polycor/index.html
So download it as a zip file and then install it -
VIA PACKAGES --> Install package(s) from local zip files…
These 3 packages need to be installed because of the dependencies between them.
Now check that the “TAM” package can be loaded in R Project
VIA PACKAGES --> Load
See below:

Typing the code:
library("TAM")
also achieves the same result.
Loading the “TAM” package seems to work even if loading the “polycor” package by itself causes this statement:
Error: This is R 3.2.5, package ‘polycor’ needs >= 3.3.0
STEP 4:
Reinstall R Essentials for Statistics 24 choosing R version 3.2.5.
Then you need to check that the “TAM” package can load in SPSS (this is done via R Essentials).
Call up a new syntax file and write:
BEGIN PROGRAM R.
R.version.string
END PROGRAM.
BEGIN PROGRAM R.
cat("\t\tHello R!\n")
END PROGRAM.
BEGIN PROGRAM R.
#Load TAM library
library("TAM")
END PROGRAM.
Select All and Run Selection (i.e. press the Green Arrow / Green Right Pointing Triangle).
If you have followed these steps, and all is working, you should get this output:

This means you can now start using the “TAM” package by using syntax coding in SPSS v24 (via R Essentials).
FURTHER INFORMATION:
https://www.ibm.com/support/knowledgecenter/SSLVMB_24.0.0/spss/programmability_option/r_package_intro.html