search for: tofile

Displaying 8 results from an estimated 8 matches for "tofile".

Did you mean: tfile
2017 Sep 08
3
file.copy(from=Directory, to=File) oddity
...() with a directory for the 'from' argument and a non-directory for the 'to' and overwrite=TRUE, file.copy returns FALSE, meaning it could not do the copying. However, it also replaces the 'to' file with a zero-length file. dir.create( fromDir <- tempfile() ) cat(file = toFile <- tempfile(), "existing file\n") readLines(toFile) #[1] "existing file" file.copy(fromDir, toFile, recursive=FALSE, overwrite=TRUE) #[1] FALSE readLines(toFile) #character(0) or, with recursive=TRUE, dir.create( fromDir <- tempfile() ) cat(file = toFile <- tempfile()...
2017 Sep 11
0
file.copy(from=Directory, to=File) oddity
...gument > and a non-directory for the 'to' and overwrite=TRUE, file.copy returns > FALSE, meaning it could not do the copying. However, it also replaces the > 'to' file with a zero-length file. > dir.create( fromDir <- tempfile() ) > cat(file = toFile <- tempfile(), "existing file\n") > readLines(toFile) > #[1] "existing file" > file.copy(fromDir, toFile, recursive=FALSE, overwrite=TRUE) > #[1] FALSE I get TRUE here, on Fedora Linux F24 and F26, for R 3.3.3, 3.4.1 and R-devel > readLine...
2011 May 17
1
R crashes if "toFile" given "~/" in Linux envirnonment
...GList=sgl) clusterData(ng, 1, c("bgcolor")) <- c("blue") clusterData(ng, 2, c("bgcolor")) <- c("red") ############################################ # and now 2 usually equivalent ways to specify the location for output file, with the second way crashing: toFile(ng, layoutType="dot", filename="/home/mkimpel/Desktop/g1_11_dot.ps", fileType="ps") NULL toFile(ng, layoutType="dot", filename="~/Desktop/g1_11_dot.ps", fileType="ps") ~/Desktop/g1_11_dot.ps: No such file or directory Process R exited abn...
2012 Sep 19
1
[PATCH 1/1] lua: Enabling io.read() in Lua.c32 with some restrictions
...return luaL_argerror(L, n, "\"*number\" not supported"); +#endif break; case 'l': /* line */ success = read_line(L, f); @@ -388,7 +404,6 @@ static int io_read (lua_State *L) { static int f_read (lua_State *L) { return g_read(L, tofile(L), 2); } -#endif static int io_readline (lua_State *L) { @@ -441,7 +456,7 @@ static int f_write (lua_State *L) { return g_write(L, tofile(L), 2); } -#ifndef SYSLINUX +#ifndef NO_F_SEEK static int f_seek (lua_State *L) { static const int mode[] = {SEEK_SET, SEEK_CUR, SEEK_END}; stat...
2009 Aug 24
0
r23 committed - Changed build.xml to use correct directory slashes
...e="${build.dir}/temp.t"> <header file="license.js"/> <fileset file="@{file}"/> <filterchain> <expandproperties/> </filterchain> </concat> - <move file="${build.dir}\temp.t" tofile="@{file}" overwrite="true"/> + <move file="${build.dir}/temp.t" tofile="@{file}" overwrite="true"/> </sequential> </for>
2012 Oct 15
1
Rgraphviz: how to read a "dot" file?
The Rgraphviz package index says nothing about reading "dot" files. (it has "toFile" to write them but no fromFile). How do I create an Ragraph object? (either by reading a dot file or from a list of edges with weights and vertices with names and other attributes). -- Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X 11.0.11103000 http://www.childpsy.net/ ht...
2011 Nov 29
3
fill binary matrices with random 1s
Dear all, I am finding difficulty in the following, I would like to create an empty matrix e.g. 10x10 of 0s and sequentially fill this matrix with randomly placed a 1s until it is saturated. Producing 100 matrices of sequentially increasing density., This process needs to be randomized 1000 times., I assume i should run this along the following lines, 1) Create 1000 matrices all zeros, 2) add
2019 Jan 09
0
Squashfs as rootfs
Hello. I'm trying to add option to grub menu (amongst other options) to boot from squashfs image. But 'root=live:/path/tofile' doesn't work. I didn't find anything useful on the internet. Anybody can point me in right direction? Maybe better choice is to replace grub with isolinux? I have working solution with iso with squashfs booting through PXE, but i don't know how to do this in grub. TIA -- Marcin...