如何找到自己的途径?
Background:
I work a lot with .R scripts or .Rnw files. My projects are organized in a directory structure, but the path of the project s base directory frequently varies between different computers (e.g. because I just do parts of data analysis for someone else, and their directory structure is different from mine: I have projects base directories ~/Projects/StudentName/ or ~/Projects/Studentname/Projectname and most students who have just their one Project usually have it under ~/Measurements/ or ~/DataAnalysis/ or something the like - which wouldn t work for me).
因此,一线类似
setwd (my.own.path ())
令人难以置信的有用性,因为它能够确保工作名录成为项目的基本道路,而不论项目实际在哪里。 用户不必考虑建立工作名录。
让我澄清: 我寻求一种解决办法,与编辑/IDE s代码<>source 或Sweave
保持一致。 不可思议用户的关键短处。