search for: differenlty

Displaying 2 results from an estimated 2 matches for "differenlty".

Did you mean: differenet
2019 Aug 27
0
Conventions: Use of globals and main functions
...n execution. But it would also encourage this mixing which is - I think, a bad idea anyways. Therefore, I am against fostering a main()-idiom - it adds complexity and encourages bad code structuring (putting application code and function definition code into one file). If one needs code to behave differenlty in interactive sessions than in non-interactive sessions - if( interactive() ){ } is one way to solve this. If more solid software developement is needed packages are the way to go. Best, Peter Am So., 25. Aug. 2019 um 06:11 Uhr schrieb Cyclic Group Z_1 via R-devel < r-devel at r-project.or...
2019 Aug 25
10
Conventions: Use of globals and main functions
In R scripts (as opposed to packages), even in reproducible scripts, it seems fairly conventional to use the global workspace as a sort of main function, and thus R scripts often populate the global environment with many variables, which may be mutated. Although this makes sense given R has historically been used interactively and this practice is common for scripting languages, this appears to