Created attachment 1687 [details]
Support document for SxS error with R 3.1.0
Component: class attributes of tk85.dll library
OS: Win 7 x64 Pro
Overview: Error message appearing in Windows event viewer, even if R is not running
Steps to reproduce: install Win 7 x64 Pro on PC, install R 3.1.0, R 3.1.1. or R 3.1.2, inspect event viewer for errors
Actual Results: Error message in Windows Event Viewer: Activation context generation failed for "c:\program files\R\r-3.1.0\Tcl\bin64\tk85.dll". Error in manifest of policy file "c:\program files\R\r-3.1.0\Tcl\bin64\tk85.dll" on line 9. The value "x64" of attribute "processorArchitecture" in element"assemblyIdentity" is invalid.
Expected result: no error code
Build Date& Hardware: November 29 2013 Win7 x64 Pro running on Toshiba Satellite P75-A7200 with Intel Quadcore chips;
July 19, 2014 Win7 x64 Pro running R 3.1.0 on HP ProBook 4510s with Intel core2 chips; November 3, 2014 Win7 x64 Pro running R 3.1.2 on same computer
Additional Platforms not known
Additional comments: Not sure whether this is more of an R issue or a Windows 7 x64 PRO/service pack 1/Other software issue (a permission - related signal from Windows to the tk85.dll library could be affected?). I have seen the code 63 error on two different laptops under OS Win 7 x64 PRO (HP ProBook and Toshiba Satellite, both with Intel chips, but of different architecture). Both laptops are running different antivirus software (Sophos vs. avast! 9.0.2021) and different web browsers of the FireFox family (FireFox 27 vs. SeaMonkey 2.26.1). The Visual C++ redistributable versions installed on both laptops are for use of both x64 and x86 confgurations as recommended (x64 9.0.30729.6161 (2008 package) and 10.0.40219 (2010 package) for the x64 configuration, and x86 9.0.30729.6161 (2008 package) and 10.0.30219 (2010 package) for the x86 configuration). From all software routines installed, only the tk85.dll library under R versions 3.1.0 through 3.1.2 is affected, and the error message in the Windows event viewer appears as soon as R has been installed. The error message relates to class attributes. As bug report 2159 (from the R archives 2002) has suggested class attributes on an environment in R to be buggy, my observation could be related.
I believe MSDN indicates this error arises when you have a newer version of the MSVC runtime library than we're expecting. The advice there is to try installing older ones until the error goes away.
If this is right, I don't think there is much R can do about this: I don't believe that the MS license allows us to redistribute the older runtime. Most systems already have one installed so we don't need to, but apparently yours doesn't.