search for: inttobin

Displaying 3 results from an estimated 3 matches for "inttobin".

Did you mean: inttobits
2010 Aug 06
1
R script doesn't load libraries when called from cron
...ve R script that i need to run in cron. Either R libraries or some .so libraries that they depend on don't get loaded correctly. Here is an example. I have a file, call it tmp.R tmp.R ========================= R --slave --args $0 $* <<EOF cmarg = commandArgs()[5] library(R.utils) b<-intToBin(cmarg) print(paste( "argument is ", cmarg, sep="")) print(paste(" binary representation of argument is ", b)) =========================================== It loads a library R.utils, uses function intToBin from it, prints binary rep of the argument. When i run it from...
2014 Dec 11
3
SUGGESTION: Force install.packages() to use ASCII encoding when parse():ing code?
...foo.R") Warning message: In readLines(file, warn = FALSE) : invalid input found on input connection 'foo.R' > options(encoding="ascii") > parse("foo.R") expression() Reason for the "invalid input": The bit pattern for raw[3:5], is: > R.utils::intToBin(raw[3:5]) [1] "11101001" "01110100" "01110101" The first byte (raw[3]) matched special UTF-8 byte pattern "1110xxxx", which according to UTF-8 should be followed by two more bytes with bit patterns "10xxxxxx" and "10xxxxx" [http://en.wiki...
2014 Dec 11
0
SUGGESTION: Force install.packages() to use ASCII encoding when parse():ing code?
...file, warn = FALSE) : > invalid input found on input connection 'foo.R' > > > options(encoding="ascii") > > parse("foo.R") > expression() > > Reason for the "invalid input": The bit pattern for raw[3:5], is: > > > R.utils::intToBin(raw[3:5]) > [1] "11101001" "01110100" "01110101" > > The first byte (raw[3]) matched special UTF-8 byte pattern "1110xxxx", > which according to UTF-8 should be followed by two more bytes with bit > patterns "10xxxxxx" and "10xxx...