[R] c++ equivalent 'default' case in switch
Hi, Is there a c++ equivalent default case in the switch command? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Converting a dataframe column from string to datetime
ok..thanks - Original Message - From: Don MacQueen macque...@llnl.gov To: raje...@cse.iitm.ac.in, r-help r-help@r-project.org Sent: Fri, 01 Oct 2010 20:51:06 +0530 (IST) Subject: Re: [R] Converting a dataframe column from string to datetime Youâre working too hard. Use this: tms - as.POSIXct(strptime(v, %a %b %d %H:%M:%OS %Y)) Take note of the fact that there are two types of datetime objects: POSIXct and POSIXlt. Your unlist() gave what seemed a strange result because you used on an âltâ object. Had you given it a âctâ object it would have made sense. To see, try lapply(v,function(x){as.POSIXct(strptime(x, %a %b %d %H:%M:%OS %Y))}) But using lapply() was more complicated than necessary. -Don On 9/30/10 10:59 PM, raje...@cse.iitm.ac.in raje...@cse.iitm.ac.in wrote: Hi, I have a dataframe column of the form v-c(Fri Feb 05 20:00:01.43000 2010,Fri Feb 05 20:00:02.274000 2010,Fri Feb 05 20:00:02.274000 2010,Fri Feb 05 20:00:06.34000 2010) I need to convert this to datetime form. I did the following.. lapply(v,function(x){strptime(x, %a %b %d %H:%M:%OS %Y)}) This gives me a list that looks like this... [[1]] [1] 2010-02-05 20:00:01.43 [[2]] [1] 2010-02-05 20:00:02.274 [[3]] [1] 2010-02-05 20:00:02.274 [[4]] [1] 2010-02-05 20:00:06.34 However, when I do an unlist...I gets converted to something like this... sec minhourmday monyearwdayyday isdst sec minhour mday monyearwdayyday isdst sec 1.430 0.000 20.000 5.000 1.000 110.000 5.000 35.000 0.000 2.274 0.000 20.000 5.000 1.000 110.000 5.000 35.000 0.000 2.274 minhourmday monyearwdayyday isdst sec min hourmday monyearwdayyday isdst 0.000 20.000 5.000 1.000 110.000 5.000 35.000 0.000 6.340 0.000 20.000 5.000 1.000 110.000 5.000 I want it to become a dataframe column except for a change in the datatype to datetime...how can I achieve this? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://BLOCKEDstat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://BLOCKEDwww.BLOCKEDR-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Don MacQueen Environmental Protection Department Lawrence Livermore National Laboratory 925 423-1062 [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] Issue with match.call
Hi, I have a function that I'm writing. The arguments in the function are as follows RFF-function(qtype, qOpt,...){} i.e., I have two args that are compulsary and the rest are optional. Now when my user passes the function call, I need to see what optional args are defined and process accordingly...what I have so far is.. RFF-function(qtype, qOpt,...){ mc - match.call(expand.dots=TRUE) } I need to see what all args have been sent out of vec-c(flag,sep,dec) and define if-else conditions based on whether they have been defined. How do I do this? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] Converting a dataframe column from string to datetime
Hi, I have a dataframe column of the form v-c(Fri Feb 05 20:00:01.43000 2010,Fri Feb 05 20:00:02.274000 2010,Fri Feb 05 20:00:02.274000 2010,Fri Feb 05 20:00:06.34000 2010) I need to convert this to datetime form. I did the following.. lapply(v,function(x){strptime(x, %a %b %d %H:%M:%OS %Y)}) This gives me a list that looks like this... [[1]] [1] 2010-02-05 20:00:01.43 [[2]] [1] 2010-02-05 20:00:02.274 [[3]] [1] 2010-02-05 20:00:02.274 [[4]] [1] 2010-02-05 20:00:06.34 However, when I do an unlist...I gets converted to something like this... sec minhourmday monyearwdayyday isdst sec minhourmday monyearwdayyday isdst sec 1.430 0.000 20.000 5.000 1.000 110.000 5.000 35.000 0.000 2.274 0.000 20.000 5.000 1.000 110.000 5.000 35.000 0.000 2.274 minhourmday monyearwdayyday isdst sec min hourmday monyearwdayyday isdst 0.000 20.000 5.000 1.000 110.000 5.000 35.000 0.000 6.340 0.000 20.000 5.000 1.000 110.000 5.000 I want it to become a dataframe column except for a change in the datatype to datetime...how can I achieve this? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] break function execution
Hi, I have an R function that executes for a little over a minute. When the function starts running, the R interface freezes and doesnt change until the function exits cleanly. Is there someway I can force the function to exit without messing up the interface?(An equivalent of Ctrl-C) Additionally, can I run the function in background and get a notification when it completes? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] break function execution
I'm on windows xp. I use R 2.11.1 GUI - Original Message - From: Greg Snow greg.s...@imail.org To: raje...@cse.iitm.ac.in, r-help r-help@r-project.org Sent: Wed, 29 Sep 2010 00:48:51 +0530 (IST) Subject: RE: [R] break function execution Ctrl-C works on some platforms, it would help us to help you if we knew which OS you are using, which version of R you are using, and in some cases whether you are using the GUI or Terminal version of R. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- project.org] On Behalf Of raje...@cse.iitm.ac.in Sent: Tuesday, September 28, 2010 2:13 AM To: r-help Subject: [R] break function execution Hi, I have an R function that executes for a little over a minute. When the function starts running, the R interface freezes and doesnt change until the function exits cleanly. Is there someway I can force the function to exit without messing up the interface?(An equivalent of Ctrl-C) Additionally, can I run the function in background and get a notification when it completes? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting- guide.html and provide commented, minimal, self-contained, reproducible code. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] running time consuming function in the background?
Hi, I have a function that takes close to 60 seconds to run. In this time, the R interface freezes and I have to wait for it to complete. Is there anyway the function can run in the background while I continue to use the interface? It could send me a signal when it completed. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] characters in a string
Hi, I need to check if a string rha,b,c,drh is delimited by two rh 's as efficiently as possible(I need to do this a lot of times) and return TRUE. Can someone suggest a good technique? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] characters in a string
great! Thanks - Original Message - From: David Winsemius dwinsem...@comcast.net To: raje...@cse.iitm.ac.in Cc: r-help r-help@r-project.org Sent: Wed, 15 Sep 2010 21:12:27 +0530 (IST) Subject: Re: [R] characters in a string On Sep 15, 2010, at 11:16 AM, raje...@cse.iitm.ac.in wrote: Hi, I need to check if a string a,b,c,d is delimited by two 's as efficiently as possible(I need to do this a lot of times) and return TRUE. Can someone suggest a good technique? txt - a,b,c,d grep(^.+$, txt) [1] 1 [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. David Winsemius, MD West Hartford, CT [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] dataframe of dataframes?
This is great. Thanks - Original Message - From: Henrik Bengtsson h...@stat.berkeley.edu To: Jeff Newmiller jdnew...@dcn.davis.ca.us Cc: raje...@cse.iitm.ac.in, r-help r-help@r-project.org Sent: Tue, 14 Sep 2010 12:27:38 +0530 (IST) Subject: Re: [R] dataframe of dataframes? You can create an empty matrix (or even array) of list elements and then assign your data frames to whichever element you want. Example: # Allocate empty matrix... x - matrix(list(), nrow=2, ncol=3); # ...alternatively x - array(list(), dim=c(2,3)); print(x); [,1] [,2] [,3] [1,] NULL NULL NULL [2,] NULL NULL NULL To assign a data frame to one of the elements, make sure to use double bracket notation, e.g. x[[1,1]] - data.frame(a=1, b=2:4); x[[1,2]] - data.frame(c=2:3); x[[2,3]] - data.frame(x=1, y=2:4); print(x); [,1] [,2] [,3] [1,] List,2 List,1 NULL [2,] NULL NULL List,2 Same is needed to extract an element, e.g. str(x[[2,3]]); 'data.frame': 3 obs. of 2 variables: $ x: num 1 1 1 $ y: int 2 3 4 Compare with: str(x[2,3]); List of 1 $ :'data.frame': 3 obs. of 2 variables: ..$ x: num [1:3] 1 1 1 ..$ y: int [1:3] 2 3 4 str(x[1,]); List of 3 $ :'data.frame': 3 obs. of 2 variables: ..$ a: num [1:3] 1 1 1 ..$ b: int [1:3] 2 3 4 $ :'data.frame': 2 obs. of 1 variable: ..$ c: int [1:2] 2 3 $ : NULL My $.02 /Henrik On Mon, Sep 13, 2010 at 11:18 PM, Jeff Newmiller wrote: raje...@cse.iitm.ac.in wrote: Hi, I create several dataframes in a nested loop and would like to maintain them in a matrix form with each dataframe represented by the row and the column. How can I do this? You can't, at least as you describe it. However, you can add a column for row ID and a column for column ID to each of your result data frames and rbind them together. It is also possible to create lists of lists... but I believe the single augmented dataframe will be way more useful in the long run. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] dataframe of dataframes?
Hi, I create several dataframes in a nested loop and would like to maintain them in a matrix form with each dataframe represented by the row and the column. How can I do this? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] advise on operations speed with Rcpp,Boost::ipc Shared Memory
Hi, I have an implementation where I transfer data records via shared memory to an R program. If anyone has prior experience, I'd like to find out which would be faster 1) storing data records in shared memory as they are(in a matrix) and then use the Rcpp::wrap to convert them to R datatypes 2) merge the records into a string and store records as strings. Then use R functions like strsplit,lapply etc to convert them to their original matrix form. Any help is appreciated [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] adding list to data.frame iteratively
Hi, I have a preallocated dataframe to which I have to add a list whose vectors will become rows in the dataframe. This is done iteratively. How can I do this? I'm dealing with very large numbers...list of 1000 vectors to a dataframe of 20 iteratively for e.g. my list is as follows ll-list(c(1,2,3),c(2,3,4)) I have to add this to a dataframe dd-data.frame(matrix(nrow=10,ncol=3)) so that I get 1 2 3 2 3 4 etc. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] shared memory system for R windows
Hi, is there a shared memory implementation for R windows, preferably something that resembles the boost c++ libraries [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] queue implementation?
Hi, is there a queue implementation in R? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] slow socket read in R?
Hi, I have a server(written in C++) that is continuously sending data through a socket(the server does some processing between sends). When I receive the data through a client written in R, the receive is slower than the send of the server even if I'm just receiving at the client and not processing. I noticed this because the server sends records of the form rx,y,zr with each send and the client receives the record. I've set some maxlen and the client receives maxlen with something like rx,y,zrra,b why is the R receive slower even when the server is processing between sends? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] Uncompressing data from read.socket
Hi, Is it possible to uncompress gzipped data coming over a socket? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] bigmemory doubt
Hi, Is it possible for me to read data from shared memory created by a vc++ program into R using bigmemory? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] representing NULL values in a vector
Hi, I have a vector who contents should look like this, c d NULL e f etc or 4 5 6 NULL 7 8 9 how can I represent the null value? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] size limit of string/parse a string and convert to vector
Hi, I have a loop as follows, dataStr - character(0) repeat{ fstr-read.socket(sockfd) if(fstr==) break dataStr-paste(dataStr,fstr) } at what point does dataStr stop accepting(gets full)? I'm sending millions of records over the socket and need to know if all of it can go into dataStr. Also, Incase all of it cannot go into dataStr, I need to parse each read.socket. In such a case, I have a string as follows, |1,ab,2.34|2,cd,3.44| how can I parse this to become a list of 2 string vectors, namely, list(c(1,ab,2.34),c(2,cd,3.44)) Any help is appreciated [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] representing NULL values in a vector
NA is good.thanks - Original Message - From: Patrick Burns pbu...@pburns.seanet.com To: r-help@r-project.org, raje...@cse.iitm.ac.in Sent: Mon, 06 Sep 2010 13:55:34 +0530 (IST) Subject: Re: [R] representing NULL values in a vector Perhaps you mean NA rather than NULL. If NA is not what you want, then I think you'll need to explain your application. On 06/09/2010 06:00, raje...@cse.iitm.ac.in wrote: Hi, I have a vector who contents should look like this, c d NULL e f etc or 4 5 6 NULL 7 8 9 how can I represent the null value? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Patrick Burns pbu...@pburns.seanet.com http://www.burns-stat.com (home of 'Some hints for the R beginner' and 'The R Inferno') [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] dataframe row names from list
Hi, I have a list which looks like this... str(y) List of 10 $ : chr [1:4] ABCD 5 0 1 $ : chr [1:4] DEF 15 1 16 $ : chr [1:4] AAA 2 17 8 $ : chr [1:4] SSS 15 25 1 $ : chr [1:4] III 15 26 4 $ : chr [1:4] OPQ 7 30 4 $ : chr [1:4] TYR 14 34 8 $ : chr [1:4] IRTS 15 42 1 $ : chr [1:4] LLL 15 43 2 $ : chr [1:4] AQW 3 45 4 I need to create a dataframe whose row names are chr[1] of each vector..ie ABCD,DEF,AAA ETC. how can I do this? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] inserting a vector as a row in a data.frame
Hi, is it possible to insert a vector as a row in a data.frame? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] return from .Call()
Hi, I have a .Call in my R function in a loop that repeats a certain number of times. Each time, the .Call returns a list. So, when I say something like, y-func() would y be a list of lists?(as many as the number of loops?) [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] limit on read.socket?
Hi, I have the following piece of code, repeat{ ss-read.socket(sockfd); if(ss==) break output-paste(output,ss) } but somehow, output is not receiving all the data that is coming through the socket.My suspicion is on the if statement. what happens if a white space occurs in between the string arriving over the socket? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] R CMD check Package(Windows): Error in inDL(x, as.logical(local), as.logical(now), ...) :
After the R CMD check is done and an R CMD INSTALL is done, where does the external dll have to be?..what can i do to make it move around with the package? can I zip it with the package? if so in what folder? - Original Message - From: Duncan Murdoch murdoch.dun...@gmail.com To: raje...@cse.iitm.ac.in Cc: r-help r-help@r-project.org Sent: Thu, 02 Sep 2010 16:42:31 +0530 (IST) Subject: Re: [R] R CMD check Package(Windows): Error in inDL(x, as.logical(local), as.logical(now), ...) : On 02/09/2010 6:46 AM, raje...@cse.iitm.ac.in wrote: It is dependent on another dll but it did not give compilation errors. It seemed to link fine at that point. Why does it have a problem at this stage? Windows needs to be able to find the other DLL at load time. It will find it if it's in the same directory or on the PATH. Duncan Murdoch From: Duncan Murdoch To: raje...@cse.iitm.ac.in Cc: r-help Sent: Thursday, September 2, 2010 4:05:14 PM Subject: Re: [R] R CMD check Package(Windows): Error in inDL(x, as.logical(local), as.logical(now), ...) : On 02/09/2010 2:29 AM, raje...@cse.iitm.ac.in wrote: Hi, I've built my own package in windows and when I run R CMD check Package-Name I get, * install options are ' --no-html' * installing *source* package 'AceTest' ... ** libs making DLL ... g++ ...etc. installing to ... done ** R ** preparing package for lazy loading ** help Warning: ./man/AceTest-package.Rd:34: All text must be in a section Warning: ./man/AceTest-package.Rd:35: All text must be in a section *** installing help indices ** building package indices ... ** testing if installed package can be loaded Error in inDL(x, as.logical(local), as.logical(now), ...) : unable to load shared library 'H:/RTick/Project/Client/AceTest.Rcheck/AceTest/libs/AceTest.dll': LoadLibrary failure: The specified module could not be found. ERROR: loading failed The message The specified module could not be found comes from Windows. It probably means that your dll depends on some other dll and the other one is unavailable, but it might mean that AceTest.dll itself can't be loaded (permission problems, defective dll, etc.) In some cases Windows will pop up a dialog box with more information than that skimpy message, e.g. if you install the package and try to run library(AceTest) from within Rgui. Duncan Murdoch * removing 'H:/RTick/Project/Client/AceTest.Rcheck/AceTest' can someone point out what went wrong? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] readLines and writeLines
Hi, I have a socket connection where I do -socketConnection -writeLines and then wait for the server to send data through the socket. so I have to wait on a readLines.But when I say str-readLines(con) it executes immediately and str gets nothing.what do i do for this? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] R CMD check Package(Windows): Error in inDL(x, as.logical(local), as.logical(now), ...) :
Hi, I've built my own package in windows and when I run R CMD check Package-Name I get, * install options are ' --no-html' * installing *source* package 'AceTest' ... ** libs making DLL ... g++ ...etc. installing to PATH ... done ** R ** preparing package for lazy loading ** help Warning: ./man/AceTest-package.Rd:34: All text must be in a section Warning: ./man/AceTest-package.Rd:35: All text must be in a section *** installing help indices ** building package indices ... ** testing if installed package can be loaded Error in inDL(x, as.logical(local), as.logical(now), ...) : unable to load shared library 'H:/RTick/Project/Client/AceTest.Rcheck/AceTest/libs/AceTest.dll': LoadLibrary failure: The specified module could not be found. ERROR: loading failed * removing 'H:/RTick/Project/Client/AceTest.Rcheck/AceTest' can someone point out what went wrong? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] R CMD check Package(Windows): Error in inDL(x, as.logical(local), as.logical(now), ...) :
It is dependent on another dll but it did not give compilation errors. It seemed to link fine at that point. Why does it have a problem at this stage? From: Duncan Murdoch murdoch.dun...@gmail.com To: raje...@cse.iitm.ac.in Cc: r-help r-help@r-project.org Sent: Thursday, September 2, 2010 4:05:14 PM Subject: Re: [R] R CMD check Package(Windows): Error in inDL(x, as.logical(local), as.logical(now), ...) : On 02/09/2010 2:29 AM, raje...@cse.iitm.ac.in wrote: Hi, I've built my own package in windows and when I run R CMD check Package-Name I get, * install options are ' --no-html' * installing *source* package 'AceTest' ... ** libs making DLL ... g++ ...etc. installing to PATH ... done ** R ** preparing package for lazy loading ** help Warning: ./man/AceTest-package.Rd:34: All text must be in a section Warning: ./man/AceTest-package.Rd:35: All text must be in a section *** installing help indices ** building package indices ... ** testing if installed package can be loaded Error in inDL(x, as.logical(local), as.logical(now), ...) : unable to load shared library 'H:/RTick/Project/Client/AceTest.Rcheck/AceTest/libs/AceTest.dll': LoadLibrary failure: The specified module could not be found. ERROR: loading failed The message The specified module could not be found comes from Windows. It probably means that your dll depends on some other dll and the other one is unavailable, but it might mean that AceTest.dll itself can't be loaded (permission problems, defective dll, etc.) In some cases Windows will pop up a dialog box with more information than that skimpy message, e.g. if you install the package and try to run library(AceTest) from within Rgui. Duncan Murdoch * removing 'H:/RTick/Project/Client/AceTest.Rcheck/AceTest' can someone point out what went wrong? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] running an exe in the background
Hi, I'd like to be able to run a .exe in the background whenever library(package-x) is called. Is this possible? ~Aks [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] binary package build error:target 'xf-' is not a directory
Hi, I built a package in linux and generated its binary using R CMD build --binary testpack. This generated testpack.tar.gz. I tried to install this package in windows using R CMD INSTALL package.tar.gz and I got the error *installing to library 'H:/R-2.11.1/library' *installing *binary* package 'testpack' ... /cygdrive/RTools/bin/cp: target 'xf-' is not a directory ERROR: installing binary package failed can someone help me out. what does this mean? ~Aks [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.