[rkward-cvs] rkward/rkward/rbackend rembedinternal.cpp,1.16,1.17 rinterface.h,1.16,1.17

Thomas Friedrichsmeier tfry at users.sourceforge.net
Tue Sep 13 16:08:36 UTC 2005


Update of /cvsroot/rkward/rkward/rkward/rbackend
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28290/rbackend

Modified Files:
	rembedinternal.cpp rinterface.h 
Log Message:
Compilation fixes. Adding unfinished ShowEditTextFileAgent

Index: rinterface.h
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/rbackend/rinterface.h,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** rinterface.h	12 Sep 2005 17:09:59 -0000	1.16
--- rinterface.h	13 Sep 2005 16:08:34 -0000	1.17
***************
*** 209,217 ****
  \section UsingTheInterfaceToRThreadingIssues Threading issues
  
! The above description sound simple enough, but there may be some threading issues to keep in mind. Consider what needs to happen when RKVariable is trying to update the information on the corresponding object in R-space (see code example above):
  
  - RKVariable will first run a command to determine the dimensionality of the object.
  
! Now this is more significant than so may think, as RKVariable is a special kind of RObject, which only handles one-dimensional data. Hence, if you create an object in R with
  
  \code
--- 209,217 ----
  \section UsingTheInterfaceToRThreadingIssues Threading issues
  
! The above description sounds simple enough, but there may be some threading issues to keep in mind. Consider what needs to happen when RKVariable is trying to update the information on the corresponding object in R-space (see code example above):
  
  - RKVariable will first run a command to determine the dimensionality of the object.
  
! Now this is more significant than you may think, as RKVariable is a special kind of RObject, which only handles one-dimensional data. Hence, if you create an object in R with
  
  \code
***************
*** 237,241 ****
  - RKVariable for object "myobject" runs a command to determine the dimensionality of "myobject"
  - Before that command has finished, the user assigns a data.frame to "myobject" (or deletes the object, or whatever)
! - The command to determine the dimensionality gets run and returns "1 dimension". RKVariable will assume it knows how to handle the object, and tries to do something with "myobject" which is only applicable for one-dimensionaly objects (e.g. trying to get the data as a one-dimensional array)
  - The user command assigning a data.frame gets run
  - RKVariables command to get the data fails
--- 237,241 ----
  - RKVariable for object "myobject" runs a command to determine the dimensionality of "myobject"
  - Before that command has finished, the user assigns a data.frame to "myobject" (or deletes the object, or whatever)
! - The command to determine the dimensionality gets run and returns "1 dimension". RKVariable will assume it knows how to handle the object, and tries to do something with "myobject" which is only applicable for one-dimensional objects (e.g. trying to get the data as a one-dimensional array)
  - The user command assigning a data.frame gets run
  - RKVariables command to get the data fails

Index: rembedinternal.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/rbackend/rembedinternal.cpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** rembedinternal.cpp	12 Sep 2005 17:09:59 -0000	1.16
--- rembedinternal.cpp	13 Sep 2005 16:08:34 -0000	1.17
***************
*** 84,90 ****
  }
  
  void RBusy (int which) {
  //TODO
! }
  
  void RCleanUp (SA_TYPE saveact, int status, int RunLast) {
--- 84,91 ----
  }
  
+ /*
  void RBusy (int which) {
  //TODO
! } */
  
  void RCleanUp (SA_TYPE saveact, int status, int RunLast) {
***************
*** 139,143 ****
  	ptr_R_FlushConsole = RFlushConsole;
  	ptr_R_ClearerrConsole = RClearerrConsole;
! //	ptr_R_Busy = RBusy;
  //	ptr_R_CleanUp = RCleanUp;
  //	ptr_R_ShowFiles = RShowFiles;
--- 140,144 ----
  	ptr_R_FlushConsole = RFlushConsole;
  	ptr_R_ClearerrConsole = RClearerrConsole;
! //	ptr_R_Busy = RBusy;				// probably we don't have any use for this
  //	ptr_R_CleanUp = RCleanUp;
  //	ptr_R_ShowFiles = RShowFiles;





More information about the rkward-tracker mailing list