“Identifier Expected” or “Invalid Prototype” when implementing a scripted constant in Inno Setup

Identifier expected Your code would be correct in a Pascal, but it does not compile in Pascal Script. In Pascal, when you want to assign a return value of a function, you either assign the value to a “variable” with a name of the function or to Result variable. So this is correct: function GetRoot: … Read more

R: 2 functions with the same name in 2 different packages

You have probably already noticed that the order of loading the packages makes a difference, i.e. the package that gets loaded last will mask the functions in packages loaded earlier. To specify the package that you want to use, the syntax is: chron::is.weekend() tseries::is.weekend() In other words, use packagename::functionname() In addition, if you know that … Read more