Displaying 20 results from an estimated 20000 matches similar to: "writing multiple lines to a file"
2017 Dec 29
3
Writing text files out of a dataset
Hello,
I am trying to run the following syntax for all cases within the dataframe
"data"
d1 <- data[1,c("material")]
fileConn<-file("TESTI/d1.txt")
writeLines(d1, fileConn)
close(fileConn)
I am trying to use the for function:
for (i in 1:nrow(data)){
d[i] <- data[i,c("material")]
fileConn<-file("TESTI/d[i].txt")
2008 Aug 20
1
Improvements to write.arff (PR#12574)
Full_Name: Martin C. Martin
Version: 2.7.1
OS: Ubuntu
Submission from: (NULL) (75.150.115.86)
The function write.arff, in the foreign library:
- Can produce relation names with invalid characters
- Doesn't use colnames() for attribute names when writing a matrix.
Here's a better version:
write.arff <- function (x, file, eol = "\n")
{
if (file == "")
2001 Jun 13
1
unreal does'nt install
How can I install Unreal Tournament under wine (20010510)? When I tried
it, I got following message after all files were copied:
>err:psdrv:PSDRV_FindPrinterInfo Error 2 getting PPD file name for
>printer 'Printer1 auto'
>fixme:winspool:AddPrinterW DocumentProperties fails
>verr:psdrv:PSDRV_FindPrinterInfo Error 2 getting PPD file name for
>printer 'Printer1
2010 Apr 14
2
winxp + sp3 = samba-shared printer hangs the system
hi,
since I upgraded some winxp-pro sp2 client to sp3, my samba-shared
printers are no-longer usable :-/
With sp3, if I run notepad and choose the men? File-Print, the "print"
window hangs and does not show any printer for about 1 minute! The
same thing happens when I click on the men? Start-settings-Printer and
faxes.
With sp2, everything works correctly and I can browse all my
2007 Dec 10
1
[Problem] [Centos 5] Samba-3.0.23c-2 login authentication problem
Hello,
I have comfigured samba-3.0.23c-2 server on CentOS-5, but when i was logging in from the client system, even if I donot provide password and hit enter key, the client is logging in as Anonymous user. Samba server should not allow for Anonymous login. (I am configuring linux (Server) to linux (Client) i am not using windows)
1) The contents of /etc/samba/smb.conf file as follows,
1999 May 13
1
permissions for printing
I have just installed Samba for the following configuration:
AIX 4.2, with NT clients
We are trying to print from clients to unix printers through a Progress
(database) program. On unix, I would identify my destination as "lp -s
-dprinter1". Now, I indicate "//rs6000/printer1". People in our systems
department (and therefore, people with "root" privileges) can
2002 Jun 06
4
Linux and Printing via smbprint
Hi there
Looking at the archives I didn't find a solution to the following problem
we have here:
Printing from our linux-server (wagner) to an intel printserver (PS652D8F)
doesn't work.
Here's the stuff we know/tried:
wagner:~ # smbclient -L //PS652D8F -N
added interface ip=10.0.0.10 bcast=10.0.0.255 nmask=255.255.255.0
Got a positive name query response from 10.0.0.40 ( 10.0.0.40
2014 Oct 19
1
Writing UTF8 on Windows
Recent functionality in jsonlite allows for streaming json to a user
supplied connection object, such as a file, pipe or socket. RFC7159
prescribes json must be encoded as unicode; ISO-8859 (including
latin1) is invalid. Hence I would like R to write strings as utf8,
irrespective of the type of connection, platform or locale.
Implementing this turns out to be unsurprisingly difficult on windows.
2005 Jul 06
1
samba and lprng
hello,
I'm using samba 3.x and lprng on debian stable. My Problem is described
by the following:
smbclient -L
Sharename Type Comment
--------- ---- -------
printer6 Printer lpp6
printer5 Printer lpp5
lpp4 Printer printer4
lpp3 Printer printer3
lpp1 Printer
2017 Dec 29
0
Writing text files out of a dataset
Hello,
You have to create the vector 'd' outside the loop before using it.
d <- numeric(nrow(data))
Only then comes the loop.
Hope this helps,
Rui Barradas
On 12/29/2017 2:31 PM, Luca Meyer wrote:
> Hello,
>
> I am trying to run the following syntax for all cases within the dataframe
> "data"
>
> d1 <- data[1,c("material")]
>
2008 Dec 17
1
append lines to a created file
hi,
I try to append a line to a file with;
writeLines("xxx", con = "file.txt, sep = "\n")
but it always overwrites the existing content.
How can I "change" the "mode" of writeLines to append ("a") ?
2002 Sep 13
2
new feature in 2.2.6 ?
Hi Jerry et al,
will the 2.2.6 release show the printers in the 'add-new-printer-wizzard'
on the client like the WINDOWS server do ?
I'm not sure if you know what I mean, so here is a little illustration:
-----------------------------
| NTSERVER |
| \\ntserver\printer1 |
| \\ntserver\printer2 |
| \\ntserver\printer3 |
| SAMBASERVER |
2009 Jul 27
2
Help printing please!!!
Hi everyone, well I need some help using wine and printing, my problem is very specific.
In a little market Im workin now, the owners decided to run Linux in all the computers, everything went perfect, even the control and accountability software that was running over Visual Fox Pro, till I deal with printing...
Thing is that if I use one function of the application that prints a report for
2016 Feb 24
2
iconv to UTF-16 encoding produces error due to embedded nulls (write.table with fileEncoding param)
On 23/02/2016 7:06 AM, Mikko Korpela wrote:
> On 23.02.2016 11:37, Martin Maechler wrote:
>>>>>>> nospam at altfeld-im de <nospam at altfeld-im.de>
>>>>>>> on Mon, 22 Feb 2016 18:45:59 +0100 writes:
>>
>> > Dear R developers
>> > I think I have found a bug that can be reproduced with two lines of code
2012 Jul 11
2
help with merging 2 data frames
Dear R-ers,
I feel I am close, but can't get it quite right.
Thanks a lot for your help!
Dimitri
# I have 2 data frames:
x<-data.frame(a=c("aa","aa","ab","ab","ba","ba","bb","bb"),b=c(1:2,1:2,1:2,1:2),d=c(10,20,30,40,50,60,70,80))
2002 Nov 01
4
2.2.6 and printer questions
Hi @all,
I have 2 questions about printer driver installation on w2k-client for a samba served printer:
1.
If I want to install a driver on w2k workstation, I choose network printer and then can browse the network. If printers are served from a Nt/w2k-server, in my opinion it is not nessesary to double click the netbios name of the Nt/w2k-server to see the shared printers. In this case under
2020 Jul 25
2
Guidelines when to use LF vs CRLF ("\n" vs. "\r\n") on Windows for new lines (line endings)?
Dear R developers,
I am developing an R package which returns strings with new line codes.
I am not sure if I should use "\r\n" or "\n" in my returned strings on Windows platforms.
What is the recommended best practice for package developers (and code in base R) for coding new lines in strings?
And just out of curiosity: What is the reason (or history) for preferring
2016 Feb 24
2
iconv to UTF-16 encoding produces error due to embedded nulls (write.table with fileEncoding param)
On 24/02/2016 9:55 AM, Mikko Korpela wrote:
> On 24.02.2016 15:47, Duncan Murdoch wrote:
>> On 23/02/2016 7:06 AM, Mikko Korpela wrote:
>>> On 23.02.2016 11:37, Martin Maechler wrote:
>>>>>>>>> nospam at altfeld-im de <nospam at altfeld-im.de>
>>>>>>>>> on Mon, 22 Feb 2016 18:45:59 +0100 writes:
>>>>
2016 Feb 25
2
iconv to UTF-16 encoding produces error due to embedded nulls (write.table with fileEncoding param)
On 23.02.2016 14:06, Mikko Korpela wrote:
> On 23.02.2016 11:37, Martin Maechler wrote:
>>>>>>> nospam at altfeld-im de <nospam at altfeld-im.de>
>>>>>>> on Mon, 22 Feb 2016 18:45:59 +0100 writes:
>>
>> > Dear R developers
>> > I think I have found a bug that can be reproduced with two lines of code
>>
2016 Feb 29
1
iconv to UTF-16 encoding produces error due to embedded nulls (write.table with fileEncoding param)
I have just committed your first patch (the strlen() replacement) to
R-devel, and will soon put it in R-patched as well. I wont have time to
look at this again before the 3.2.4 release, so your file.show() patch
isn't going to make it unless someone else gets to it.
There's still a faint chance that I'll do more in R-devel before 3.3.0,
but I think it's best if there were bug