[R] Computing growth rate

2016-12-14 Thread Brijesh Mishra
Hi,

I am trying to calculate growth rate (say, sales, though it is to be
computed for many variables) in a panel data set. Problem is that I
have missing data for many firms for many years. To put it simply, I
have created this short dataframe (original df id much bigger)

df1<-data.frame(co_code1=rep(c(1100, 1200, 1300), each=7),
fyear1=rep(1990:1996, 3), sales1=rep(seq(1000,1600, by=100),3))

# this gives me
co_code1 fyear1 sales1
1  1100   1990   1000
2  1100   1991   1100
3  1100   1992   1200
4  1100   1993   1300
5  1100   1994   1400
6  1100   1995   1500
7  1100   1996   1600
8  1200   1990   1000
9  1200   1991   1100
10 1200   1992   1200
11 1200   1993   1300
12 1200   1994   1400
13 1200   1995   1500
14 1200   1996   1600
15 1300   1990   1000
16 1300   1991   1100
17 1300   1992   1200
18 1300   1993   1300
19 1300   1994   1400
20 1300   1995   1500
21 1300   1996   1600

# I am now removing a couple of rows
df1<-df1[-c(5, 8), ]
# the result is
   co_code1 fyear1 sales1
1  1100   1990   1000
2  1100   1991   1100
3  1100   1992   1200
4  1100   1993   1300
6  1100   1995   1500
7  1100   1996   1600
9  1200   1991   1100
10 1200   1992   1200
11 1200   1993   1300
12 1200   1994   1400
13 1200   1995   1500
14 1200   1996   1600
15 1300   1990   1000
16 1300   1991   1100
17 1300   1992   1200
18 1300   1993   1300
19 1300   1994   1400
20 1300   1995   1500
21 1300   1996   1600
# so 1994 for co_code1 1100 and 1990 for co_code1 1200 have been
removed. If I try,
d<-ddply(df1,"co_code1",transform, growth=c(NA,exp(diff(log(sales1)))-1)*100)

# this apparently gives wrong results for the year 1995 (as shown
below) as growth rates are computed considering yearly increment.

   co_code1 fyear1 sales1growth
1  1100   1990   1000NA
2  1100   1991   1100 10.00
3  1100   1992   1200  9.090909
4  1100   1993   1300  8.33
5  1100   1995   1500 15.384615
6  1100   1996   1600  6.67
7  1200   1991   1100NA
8  1200   1992   1200  9.090909
9  1200   1993   1300  8.33
10 1200   1994   1400  7.692308
11 1200   1995   1500  7.142857
12 1200   1996   1600  6.67
13 1300   1990   1000NA
14 1300   1991   1100 10.00
15 1300   1992   1200  9.090909
16 1300   1993   1300  8.33
17 1300   1994   1400  7.692308
18 1300   1995   1500  7.142857
19 1300   1996   1600  6.67
# I thought of using the formula only when the increment of fyear1 is
only 1 while in a co_code1, by using this formula

d<-ddply(df1,
 "co_code1",
 transform,
 if(diff(fyear1)==1){
   growth=(exp(diff(log(df1$sales1)))-1)*100
 } else{
   growth=NA
 })

But, this doesn't work. I am getting the following error.

In if (diff(fyear1) == 1) { :
  the condition has length > 1 and only the first element will be used
(repeated a few times).

# I have searched for a solution, but somehow couldn't get one. Hope
that some kind soul will guide me here.

Regards,

Brijesh K Mishra
Indian Institute of Management, Indore
India

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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 studio Problem

2016-12-14 Thread Bert Gunter
You may get a reply here, but this is the wrong place for you to post.
RStudio is a separate commercial entity and product from the
noncommercial R foundation and R software that runs this list. This
list is about R programming; for questions about RStudio, you should
consult the RStudio website and post to their support lists.

Cheers,
Bert


Bert Gunter

"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )


On Wed, Dec 14, 2016 at 10:18 PM, Amelia Marsh via R-help
 wrote:
> Hi
>
> I had installed R studio Desktop 1.0.44. However whenever I wanted to write 
> any command, before I could complete, I was getting following error
>
> Error in normalizePath(dir, winslash = "/", mustWork = TRUE) :
> unused argument(s) (winslash = "/", mustWork = TRUE)
>
>
> I had uninstalled RStudio and again downloaded it and reinstalled. But still 
> I am getting error like as mentioned below -
>
>
>> a = 40
>
>> b = 45
> Error in normalizePath(dir, winslash = "/", mustWork = TRUE) :
> unused argument(s) (winslash = "/", mustWork = TRUE)
>> c = 120
> Error in normalizePath(dir, winslash = "/", mustWork = TRUE) :
> unused argument(s) (winslash = "/", mustWork = TRUE)
> Error in normalizePath(dir, winslash = "/", mustWork = TRUE) :
> unused argument(s) (winslash = "/", mustWork = TRUE)
> Error in normalizePath(dir, winslash = "/", mustWork = TRUE) :
> unused argument(s) (winslash = "/", mustWork = TRUE)
> Error in normalizePath(dir, winslash = "/", mustWork = TRUE) :
> unused argument(s) (winslash = "/", mustWork = TRUE)
> Error in normalizePath(dir, winslash = "/", mustWork = TRUE) :
> unused argument(s) (winslash = "/", mustWork = TRUE)
>
>
> I had assigned value 40 to a, value 45 to b, but when I tried to assign value 
> 120 to c, before I could complete, it started throwing above messages. I 
> tried rnorm etc, however the error keeps on reappearing.
>
>
> Can someone guide me.
>
> Regards
>
> Amelais
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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 studio Problem

2016-12-14 Thread K. Elo

Hi!

Maybe this helps:

http://r.789695.n4.nabble.com/Error-in-normalizePath-path-with-McAfee-td2532324.html

Best,
Kimmo

15.12.2016, 08:18, Amelia Marsh via R-help wrote:

Hi

I had installed R studio Desktop 1.0.44. However whenever I wanted to write any 
command, before I could complete, I was getting following error

Error in normalizePath(dir, winslash = "/", mustWork = TRUE) :
unused argument(s) (winslash = "/", mustWork = TRUE)


I had uninstalled RStudio and again downloaded it and reinstalled. But still I 
am getting error like as mentioned below -



a = 40



b = 45

Error in normalizePath(dir, winslash = "/", mustWork = TRUE) :
unused argument(s) (winslash = "/", mustWork = TRUE)

c = 120

Error in normalizePath(dir, winslash = "/", mustWork = TRUE) :
unused argument(s) (winslash = "/", mustWork = TRUE)
Error in normalizePath(dir, winslash = "/", mustWork = TRUE) :
unused argument(s) (winslash = "/", mustWork = TRUE)
Error in normalizePath(dir, winslash = "/", mustWork = TRUE) :
unused argument(s) (winslash = "/", mustWork = TRUE)
Error in normalizePath(dir, winslash = "/", mustWork = TRUE) :
unused argument(s) (winslash = "/", mustWork = TRUE)
Error in normalizePath(dir, winslash = "/", mustWork = TRUE) :
unused argument(s) (winslash = "/", mustWork = TRUE)


I had assigned value 40 to a, value 45 to b, but when I tried to assign value 
120 to c, before I could complete, it started throwing above messages. I tried 
rnorm etc, however the error keeps on reappearing.


Can someone guide me.

Regards

Amelais

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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 studio Problem

2016-12-14 Thread Amelia Marsh via R-help
Hi

I had installed R studio Desktop 1.0.44. However whenever I wanted to write any 
command, before I could complete, I was getting following error

Error in normalizePath(dir, winslash = "/", mustWork = TRUE) : 
unused argument(s) (winslash = "/", mustWork = TRUE) 


I had uninstalled RStudio and again downloaded it and reinstalled. But still I 
am getting error like as mentioned below -


> a = 40 

> b = 45 
Error in normalizePath(dir, winslash = "/", mustWork = TRUE) : 
unused argument(s) (winslash = "/", mustWork = TRUE) 
> c = 120 
Error in normalizePath(dir, winslash = "/", mustWork = TRUE) : 
unused argument(s) (winslash = "/", mustWork = TRUE) 
Error in normalizePath(dir, winslash = "/", mustWork = TRUE) : 
unused argument(s) (winslash = "/", mustWork = TRUE) 
Error in normalizePath(dir, winslash = "/", mustWork = TRUE) : 
unused argument(s) (winslash = "/", mustWork = TRUE) 
Error in normalizePath(dir, winslash = "/", mustWork = TRUE) : 
unused argument(s) (winslash = "/", mustWork = TRUE) 
Error in normalizePath(dir, winslash = "/", mustWork = TRUE) : 
unused argument(s) (winslash = "/", mustWork = TRUE) 


I had assigned value 40 to a, value 45 to b, but when I tried to assign value 
120 to c, before I could complete, it started throwing above messages. I tried 
rnorm etc, however the error keeps on reappearing.


Can someone guide me.

Regards

Amelais

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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: [ESS] Can't load libraries after upgrading to R 3.3.2

2016-12-14 Thread Simon Bonner
Note also that the most recent version of JAGS is 4.2.0 
(http://mcmc-jags.sourceforge.net/). It’s probably worth upgrading. JAGS is 
available via homebrew if you want an easy way to install it and keep it up to 
date.

Simon Bonner
Assistant Professor of Environmetrics/Director MMASc
Department of Statistical and Actuarial Sciences/Department of Biology
University of Western Ontario
 
Office: Western Science Centre rm 276
 
Email: sbonn...@uwo.ca | Telephone: 519-661-2111 x88205 | Fax: 519-661-3813
Twitter: @bonnerstatslab | Website: http://simon.bonners.ca/bonner-lab/wpblog/
 

On 2016-12-13, 6:42 PM, "ESS-help on behalf of ross.darn...@data61.csiro.au" 
 
wrote:

A quick google found this

https://martynplummer.wordpress.com/2014/09/08/jags-3-4-0-for-mavericks/

Ross

-Original Message-
From: ESS-help [mailto:ess-help-boun...@r-project.org] On Behalf Of Gonçalo 
Ferraz
Sent: Wednesday, 14 December 2016 2:58 AM
To: ess-help@r-project.org
Subject: [ESS] Can't load libraries after upgrading to R 3.3.2

Hi, 

I just upgraded R to version 3.3.2 on a Mac OS X system. I suspect 
something may have gone wrong with the installation (despite a ‘successfully 
installed’ message) because the R.App is nowhere to be found.
Nevertheless, I can open R in ESS, which how I always use it. The problem 
though, is I can’t install packages from the R command line within ESS. Here is 
a sample error message:

> install.packages("rjags")
--- Please select a CRAN mirror for use in this session --- trying URL 
'https://vps.fmvz.usp.br/CRAN/bin/macosx/mavericks/contrib/3.3/rjags_4-6.tgz' 

Content type 'application/x-gzip' length 249529 bytes (243 KB) 
==
downloaded 243 KB

The downloaded binary packages are in

/var/folders/kf/zkk64rtj5197pzwq94qfls0wgn/T//RtmpuSb7P1/downloaded_packages
> library(rjags)
Loading required package: coda
Error : .onLoad failed in loadNamespace() for 'rjags', details:
 call: dyn.load(file, DLLpath = DLLpath, ...)
 error: unable to load shared object 
'/Library/Frameworks/R.framework/Versions/3.3/Resources/library/rjags/libs/rjags.so':
 
dlopen(/Library/Frameworks/R.framework/Versions/3.3/Resources/library/rjags/libs/rjags.so,
 10): Library not loaded: /usr/local/lib/libjags.4.dylib  Referenced from: 
/Library/Frameworks/R.framework/Versions/3.3/Resources/library/rjags/libs/rjags.so
 Reason: image not found
Error: package or namespace load failed for ‘rjags’

This happens with other packages as well. Does anyone know what may be 
going on?

Thank you,

Gonçalo
[[alternative HTML version deleted]]

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help
__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

Re: [R] how to show a plot without overlaying the text on top of the another text?

2016-12-14 Thread Jim Lemon
Hi Marna,
Your request made me think that a simple manual label placing function
might be useful to some people.

placeLabels<-function(pointer=TRUE,cex=1,labelcol=par("fg"),
 bg="white",border=par("fg"),pointercol=par("fg")) {

 cat("Enter a blank label to finish\n")
 nextlabel<-"XXX"
 while(nchar(nextlabel)) {
  cat("Click on a data point\n")
  datumxy<-locator(1)
  cat("Click on the label position\n")
  labelxy<-locator(1)
  nextlabel<-readline("Enter the label - ")
  if(nchar(nextlabel)) {
   if(pointer) segments(datumxy$x,datumxy$y,labelxy$x,labelxy$y,
col=pointercol)
   boxed.labels(labelxy$x,labelxy$y,nextlabel,col=labelcol,
bg=bg,border=border)
  }
 }
}

All I have to do is work out how to get it to automatically switch
back to the console window for the label entry.

Jim


On Wed, Dec 14, 2016 at 10:37 AM, Marna Wagley  wrote:
> Hi R user,
> I have created using metaNMDS (Nonmetirc Multidimensional Scaling, MDS) to
> show species composition but some of the species are concentrated at some
> of the sites so that the name of the species are overlaid and it was
> almost impossible to read the species name in the figure. I was wondering how
> we can show the plot without overlaying the text on top of another.
> I used the following to create the plot. would you mind to suggest me?
>
> comm.bc.mds <- metaMDS(dat, dist = "bray")
> ordiplot(comm.bc.mds, display = "sites", type = "text")
> ordipointlabel(comm.bc.mds,font = c(1, 1), cex = c(0.5, 0.3))
>
> Thanks
>
> MW
>
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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] "Safe" use of iterator (package iterators)

2016-12-14 Thread Rich Calaway via R-help
Hi, Harold--

The short answer is "Yes"--in your example, the nextElem will always be a list 
with the i component equal to the next element of itx1 and the j component 
equal to the next element of itx2.

I posted a more detailed explanation in response to a query from David on the 
Microsoft TechNet forum: 
https://social.technet.microsoft.com/Forums/en-US/724b1dde-03e3-4fff-b061-363bc8ba1652/how-are-multiple-iterobjects-handled-by-foreach?forum=ropen


Cheers,
Rich

Rich Calaway
Release Manager
Microsoft R Product Team
24/1341
+1 (425) 4219919 X19919


Message: 2
Date: Fri, 9 Dec 2016 17:15:38 +
From: "Doran, Harold" 
To: "r-help@r-project.org" 
Subject: [R] "Safe" use of iterator (package iterators)
Message-ID:

Content-Type: text/plain; charset="iso-8859-1"

I believe I now see the light vis-?-vis iterators when combined with foreach() 
calls in R. I have now been able to reduce computational workload to minutes 
instead of hours. I want to verify that the way I am using them is "safe". By 
safe I mean does the iterator traverse elements in the same way as I have below 
in my toy example to illustrate what I mean.

In the first "traditional" example, I have only one index variable for the loop 
and so I know that the same list in r1 and r2 are always being grabbed. That 
is, in iteration 1 it is guaranteed to use r1[[1]] + r2[[1]].

In the example that uses the iterators, is this also guaranteed even though I 
now have two iterator objects? That is, will the index for element i always be 
the same as the index for element j when using this across many different cores?

It seems to be true and in all my test cases so far I am seeing it to be true. 
But, that could be just luck, so I wonder if there is a condition under which 
that would NOT be true.

Thank you
Harold


library(foreach)
library(doParallel)
cl <- makeCluster(2) 
registerDoParallel(cl)

### Create random data
r1 <- vector("list", 20)
for(i in 1:20){
r1[[i]] <- rnorm(10)
}

### Create random data
r2 <- vector("list", 20)
for(i in 1:20){
r2[[i]] <- rnorm(10)
}

### Use a for loop traditionally 
result1 <- vector("list", 20)
for(i in 1:20){
result1[[i]] <- r1[[i]] + r2[[i]]
}

### Use iterators
itx1 <- iter(r1)
itx2 <- iter(r2)

result2 <- foreach(i = itx1, j = itx2) %dopar% {
i + j
}   

all.equal(result1, result2)




Message: 4
Date: Fri, 9 Dec 2016 10:26:55 -0800
From: David Winsemius 
To: "Doran, Harold" 
Cc: "r-help@r-project.org" 
Subject: Re: [R] "Safe" use of iterator (package iterators)
Message-ID: 
Content-Type: text/plain; charset=iso-8859-1


> On Dec 9, 2016, at 9:15 AM, Doran, Harold  wrote:
> 
> I believe I now see the light vis-?-vis iterators when combined with 
> foreach() calls in R. I have now been able to reduce computational workload 
> to minutes instead of hours. I want to verify that the way I am using them is 
> "safe". By safe I mean does the iterator traverse elements in the same way as 
> I have below in my toy example to illustrate what I mean.
> 
> In the first "traditional" example, I have only one index variable for the 
> loop and so I know that the same list in r1 and r2 are always being grabbed. 
> That is, in iteration 1 it is guaranteed to use r1[[1]] + r2[[1]].
> 
> In the example that uses the iterators, is this also guaranteed even though I 
> now have two iterator objects? That is, will the index for element i always 
> be the same as the index for element j when using this across many different 
> cores?
> 
> It seems to be true and in all my test cases so far I am seeing it to be 
> true. But, that could be just luck, so I wonder if there is a condition under 
> which that would NOT be true.
> 
> Thank you
> Harold
> 
> 
> library(foreach)
> library(doParallel)
> cl <- makeCluster(2) 
> registerDoParallel(cl)
> 
> ### Create random data
> r1 <- vector("list", 20)
> for(i in 1:20){
>   r1[[i]] <- rnorm(10)
> }
> 
> ### Create random data
> r2 <- vector("list", 20)
> for(i in 1:20){
>   r2[[i]] <- rnorm(10)
> }
> 
> ### Use a for loop traditionally 
> result1 <- vector("list", 20)
> for(i in 1:20){
>   result1[[i]] <- r1[[i]] + r2[[i]]
> }
>   
> ### Use iterators
> itx1 <- iter(r1)
> itx2 <- iter(r2)
> 
> result2 <- foreach(i = itx1, j = itx2) %dopar% {
>   i + j
>   }   
> 
> all.equal(result1, result2)

I wasn't sure how this would or should behave. I'm not an experienced user, 
merely a reader of help pages. Neither the help page, not the vignette 
references on the help page answered my questions in this case. I expected that 
call would behave analogously to the behavior of mapply when given iterators of 
unequal length. (The shorter of the objects is recycled to reach the 

Re: [R] how to show a plot without overlaying the text on top of the another text?

2016-12-14 Thread Adams, Jean
The ggrepel package might help.

http://blog.revolutionanalytics.com/2016/01/avoid-overlapping-labels-in-ggplot2-charts.html

Jean

On Tue, Dec 13, 2016 at 5:37 PM, Marna Wagley 
wrote:

> Hi R user,
> I have created using metaNMDS (Nonmetirc Multidimensional Scaling, MDS) to
> show species composition but some of the species are concentrated at some
> of the sites so that the name of the species are overlaid and it was
> almost impossible to read the species name in the figure. I was wondering
> how
> we can show the plot without overlaying the text on top of another.
> I used the following to create the plot. would you mind to suggest me?
>
> comm.bc.mds <- metaMDS(dat, dist = "bray")
> ordiplot(comm.bc.mds, display = "sites", type = "text")
> ordipointlabel(comm.bc.mds,font = c(1, 1), cex = c(0.5, 0.3))
>
> Thanks
>
> MW
>
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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 -- To UNSUBSCRIBE and more, see
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] data manipulation

2016-12-14 Thread Rui Barradas

OK, to the op: don't use read.csv, use read.table. Like this:

URL <- 
"https://web.archive.org/web/20130501161812/http://staff.elena.aut.ac.nz/Paul-Cowpertwait/ts/cbe.dat;

xx <- read.table(URL, header = TRUE)
str(xx)

Hope this helps,

Rui Barradas

Em 14-12-2016 20:03, David Winsemius escreveu:



On Dec 14, 2016, at 7:17 AM, David L Carlson  wrote:

It seems to be a data set for use with Introductory Time Series with R by P S 
Cowpertwait and A V Metcalfe. It is not just the file that is missing, the 
whole folder is missing:

The requested URL /~pscoperwait/ was not found on this server.

The Springer website for the book indicates the data sets are located at

http://staff.elena.aut.ac.nz/Paul-Cowpertwait/ts/

but there is no server at staff.elena.aut.ac.nz. A web search turns up this 
link:

http://www.maths.adelaide.edu.au/andrew.metcalfe/

But the link to cbe.dat and the other data sets are dead.


There were images of them in the Wayback Machine. This appears to be the one 
originally sought.

https://web.archive.org/web/20130501161812/http://staff.elena.aut.ac.nz/Paul-Cowpertwait/ts/cbe.dat

Many others can be found with this search:

https://web.archive.org/web/*/http://staff.elena.aut.ac.nz/Paul-Cowpertwait/*




-
David L Carlson
Department of Anthropology
Texas A University
College Station, TX 77840-4352



-Original Message-
From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Rui Barradas
Sent: Wednesday, December 14, 2016 6:12 AM
To: John Kane; Farshad Fathian; r-h...@stat.math.ethz.ch
Subject: Re: [R] data manipulation

Hello,

What do you mean by "gives me something"?

xx <- read.csv("http://massey.ac.nz/~pscoperwait/ts/cbe.dat;)
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
   cannot open URL 'http://massey.ac.nz/~pscoperwait/ts/cbe.dat': HTTP
status was '404 Not Found'

Rui Barradas


Em 14-12-2016 11:56, John Kane via R-help escreveu:

xx <- read.csv("http://massey.ac.nz/~pscoperwait/ts/cbe.dat;)
gives me something. Since we have no idea of what you are doing I don't know if 
the data has downloaded correctly

 On Tuesday, December 13, 2016 1:38 PM, Farshad Fathian 
 wrote:


  Hi,



I couldn't access to data file about PSCoperwait by
http://massey.ac.nz/~pscoperwait/ts/cbe.dat.



Looking forward to hearing from you,


 [[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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 -- To UNSUBSCRIBE and more, see
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-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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
Alameda, CA, USA



__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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] data manipulation

2016-12-14 Thread David Winsemius

> On Dec 14, 2016, at 7:17 AM, David L Carlson  wrote:
> 
> It seems to be a data set for use with Introductory Time Series with R by P S 
> Cowpertwait and A V Metcalfe. It is not just the file that is missing, the 
> whole folder is missing:
> 
> The requested URL /~pscoperwait/ was not found on this server.
> 
> The Springer website for the book indicates the data sets are located at
> 
> http://staff.elena.aut.ac.nz/Paul-Cowpertwait/ts/
> 
> but there is no server at staff.elena.aut.ac.nz. A web search turns up this 
> link:
> 
> http://www.maths.adelaide.edu.au/andrew.metcalfe/
> 
> But the link to cbe.dat and the other data sets are dead.

There were images of them in the Wayback Machine. This appears to be the one 
originally sought.

https://web.archive.org/web/20130501161812/http://staff.elena.aut.ac.nz/Paul-Cowpertwait/ts/cbe.dat

Many others can be found with this search:

https://web.archive.org/web/*/http://staff.elena.aut.ac.nz/Paul-Cowpertwait/*


> 
> -
> David L Carlson
> Department of Anthropology
> Texas A University
> College Station, TX 77840-4352
> 
> 
> 
> -Original Message-
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Rui Barradas
> Sent: Wednesday, December 14, 2016 6:12 AM
> To: John Kane; Farshad Fathian; r-h...@stat.math.ethz.ch
> Subject: Re: [R] data manipulation
> 
> Hello,
> 
> What do you mean by "gives me something"?
> 
> xx <- read.csv("http://massey.ac.nz/~pscoperwait/ts/cbe.dat;)
> Error in file(file, "rt") : cannot open the connection
> In addition: Warning message:
> In file(file, "rt") :
>   cannot open URL 'http://massey.ac.nz/~pscoperwait/ts/cbe.dat': HTTP 
> status was '404 Not Found'
> 
> Rui Barradas
> 
> 
> Em 14-12-2016 11:56, John Kane via R-help escreveu:
>> xx <- read.csv("http://massey.ac.nz/~pscoperwait/ts/cbe.dat;)
>> gives me something. Since we have no idea of what you are doing I don't know 
>> if the data has downloaded correctly
>> 
>> On Tuesday, December 13, 2016 1:38 PM, Farshad Fathian 
>>  wrote:
>> 
>> 
>>  Hi,
>> 
>> 
>> 
>> I couldn't access to data file about PSCoperwait by
>> http://massey.ac.nz/~pscoperwait/ts/cbe.dat.
>> 
>> 
>> 
>> Looking forward to hearing from you,
>> 
>> 
>> [[alternative HTML version deleted]]
>> 
>> __
>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> 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 -- To UNSUBSCRIBE and more, see
>> 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-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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
Alameda, CA, USA

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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] weird behavior of DoubleMetaphone

2016-12-14 Thread Dimitri Liakhovitski
No real need to answer. I found that function 'metaphone' from package
"phonics" doesn't misbehave this way!

library(phonics)
mymetaphone = function(x){
temp <- strsplit(x, split=" ")[[1]]
for(word in 1:length(temp)){
 temp[word]<-metaphone(temp[word])
}
return(paste(temp, collapse = ""))
}

The next 4 lines return the same thing:
metaphone("netflix")
metaphone("net flex")
mymetaphone("netflix")
mymetaphone("net flex")

Dimitri

On Wed, Dec 14, 2016 at 2:35 PM, Dimitri Liakhovitski
 wrote:
> I was wondering if anyone can answer this question.
>
> library(PGRdup)
>
> Both lines below return "NTFL".
> DoubleMetaphone("netflix")$primary
> DoubleMetaphone("net flex")$primary
>
> Now, I modify the function a bit - I first split the string on
> "space", then merge back together:
>
> mymetaphone = function(x){
> temp <- strsplit(x, split=" ")[[1]]
> for(word in 1:length(temp)){
>  temp[word]<-DoubleMetaphone(temp[word])$primary
> }
> return(paste(temp, collapse = ""))
> }
> mymetaphone("netflix")# returns "NTFL"
> mymetaphone("net flex")  # returns "NTFLKS"
>
> Why such a difference between DoubleMetaphone("net flex")$primary and
> mymetaphone("net flex")?
> Why isn't DoubleMetaphone("net flex")$primary returning "NTFLKS"?
> Thank you!
>
> --
> Dimitri Liakhovitski



-- 
Dimitri Liakhovitski

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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] weird behavior of DoubleMetaphone

2016-12-14 Thread Dimitri Liakhovitski
I was wondering if anyone can answer this question.

library(PGRdup)

Both lines below return "NTFL".
DoubleMetaphone("netflix")$primary
DoubleMetaphone("net flex")$primary

Now, I modify the function a bit - I first split the string on
"space", then merge back together:

mymetaphone = function(x){
temp <- strsplit(x, split=" ")[[1]]
for(word in 1:length(temp)){
 temp[word]<-DoubleMetaphone(temp[word])$primary
}
return(paste(temp, collapse = ""))
}
mymetaphone("netflix")# returns "NTFL"
mymetaphone("net flex")  # returns "NTFLKS"

Why such a difference between DoubleMetaphone("net flex")$primary and
mymetaphone("net flex")?
Why isn't DoubleMetaphone("net flex")$primary returning "NTFLKS"?
Thank you!

-- 
Dimitri Liakhovitski

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


[ESS] file completion R script buffer not auto completing

2016-12-14 Thread Stephen Sefick
Hello:

Long time R user; new ESS user. Thank you all so much for this wonderful
IDE. I am having problems with the ESS and the R script buffer.

I would like to be able to use an autocomplete file name/path like in R
studio. I am sure that I am missing something in my .emacs file. Please
let me know what things would be helpful to post in order to diagnose my
problem.

I appreciate the help.
kindest regards,

Stephen

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [R] data manipulation

2016-12-14 Thread David L Carlson
It seems to be a data set for use with Introductory Time Series with R by P S 
Cowpertwait and A V Metcalfe. It is not just the file that is missing, the 
whole folder is missing:

The requested URL /~pscoperwait/ was not found on this server.

The Springer website for the book indicates the data sets are located at

http://staff.elena.aut.ac.nz/Paul-Cowpertwait/ts/

but there is no server at staff.elena.aut.ac.nz. A web search turns up this 
link:

http://www.maths.adelaide.edu.au/andrew.metcalfe/

But the link to cbe.dat and the other data sets are dead.

-
David L Carlson
Department of Anthropology
Texas A University
College Station, TX 77840-4352



-Original Message-
From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Rui Barradas
Sent: Wednesday, December 14, 2016 6:12 AM
To: John Kane; Farshad Fathian; r-h...@stat.math.ethz.ch
Subject: Re: [R] data manipulation

Hello,

What do you mean by "gives me something"?

xx <- read.csv("http://massey.ac.nz/~pscoperwait/ts/cbe.dat;)
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
   cannot open URL 'http://massey.ac.nz/~pscoperwait/ts/cbe.dat': HTTP 
status was '404 Not Found'

Rui Barradas


Em 14-12-2016 11:56, John Kane via R-help escreveu:
> xx <- read.csv("http://massey.ac.nz/~pscoperwait/ts/cbe.dat;)
> gives me something. Since we have no idea of what you are doing I don't know 
> if the data has downloaded correctly
>
>  On Tuesday, December 13, 2016 1:38 PM, Farshad Fathian 
>  wrote:
>
>
>   Hi,
>
>
>
> I couldn't access to data file about PSCoperwait by
> http://massey.ac.nz/~pscoperwait/ts/cbe.dat.
>
>
>
> Looking forward to hearing from you,
>
>
>  [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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 -- To UNSUBSCRIBE and more, see
> 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-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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] Question regarding package deSolve and R versions

2016-12-14 Thread Shirley R
My apologies. When I found the r-help email, I entirely missed the posting
guide. I will try just update my version of R to be current. If I need to
ask another qustion, I will be sure to look up the posting guide, first.

Thank you very much!!

Shirley

On Dec 14, 2016 12:28 AM, "Jeff Newmiller"  wrote:

> You are approaching this the wrong way... you should be upgrading your
> version of R to be current.  The deSolve package is up to date... it is
> your R that is behind.
>
> You should also read the Posting Guide which would have told you this and
> also that you need to post using plain text and mention your OS among other
> things.
> --
> Sent from my phone. Please excuse my brevity.
>
> On December 13, 2016 3:08:41 PM PST, Shirley R 
> wrote:
> >To whom it may concern,
> >
> >I've run into trouble installing the crqa package. R error messages
> >tell me
> >it is because I don't have the deSolve package. I cannot install the
> >deSolve package, but according to everything I've found online, my
> >version
> >of R (3.2.1) should be fine to work with deSolve. Is there an older
> >version
> >of R that I could use that would work?
> >
> >
> >Thank you!
> >
> >Shirley
> >
> >   [[alternative HTML version deleted]]
> >
> >__
> >R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> >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 -- To UNSUBSCRIBE and more, see
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] data manipulation

2016-12-14 Thread Rui Barradas

Hello,

Please cc your mails to the list.
As for your data, your url is wrong, you need to contact Massey or maybe 
the source of your information and get a valid internet address.

Without one there's not much we can do.

Rui Barradas

Em 14-12-2016 12:16, Farshad Fathian escreveu:

Hello,

Thanks for your e-mail. I was reading "Introductory Time Series with R"
by PS. Cowperwait. I am going to run the R codes in this book, but I
don't access to the input data from
("http://massey.ac.nz/~pscoperwait/ts/cbe.dat
") website.

Regards,

On Wed, Dec 14, 2016 at 3:42 PM, Rui Barradas > wrote:

Hello,

What do you mean by "gives me something"?

xx <- read.csv("http://massey.ac.nz/~pscoperwait/ts/cbe.dat
")
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
   cannot open URL 'http://massey.ac.nz/~pscoperwait/ts/cbe.dat
': HTTP status was '404
Not Found'

Rui Barradas


Em 14-12-2016 11:56, John Kane via R-help escreveu:

xx <- read.csv("http://massey.ac.nz/~pscoperwait/ts/cbe.dat
")
gives me something. Since we have no idea of what you are doing
I don't know if the data has downloaded correctly

  On Tuesday, December 13, 2016 1:38 PM, Farshad Fathian
>
wrote:


   Hi,



I couldn't access to data file about PSCoperwait by
http://massey.ac.nz/~pscoperwait/ts/cbe.dat
.



Looking forward to hearing from you,


  [[alternative HTML version deleted]]

__
R-help@r-project.org  mailing list
-- To UNSUBSCRIBE and more, see
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
-- To UNSUBSCRIBE and more, see
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-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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] data manipulation

2016-12-14 Thread Rui Barradas

Hello,

What do you mean by "gives me something"?

xx <- read.csv("http://massey.ac.nz/~pscoperwait/ts/cbe.dat;)
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
  cannot open URL 'http://massey.ac.nz/~pscoperwait/ts/cbe.dat': HTTP 
status was '404 Not Found'


Rui Barradas


Em 14-12-2016 11:56, John Kane via R-help escreveu:

xx <- read.csv("http://massey.ac.nz/~pscoperwait/ts/cbe.dat;)
gives me something. Since we have no idea of what you are doing I don't know if 
the data has downloaded correctly

 On Tuesday, December 13, 2016 1:38 PM, Farshad Fathian 
 wrote:


  Hi,



I couldn't access to data file about PSCoperwait by
http://massey.ac.nz/~pscoperwait/ts/cbe.dat.



Looking forward to hearing from you,


 [[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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 -- To UNSUBSCRIBE and more, see
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-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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] data manipulation

2016-12-14 Thread John Kane via R-help
xx <- read.csv("http://massey.ac.nz/~pscoperwait/ts/cbe.dat;)
gives me something. Since we have no idea of what you are doing I don't know if 
the data has downloaded correctly 

On Tuesday, December 13, 2016 1:38 PM, Farshad Fathian 
 wrote:
 

 Hi,

 

I couldn't access to data file about PSCoperwait by
http://massey.ac.nz/~pscoperwait/ts/cbe.dat.

 

Looking forward to hearing from you,


    [[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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 -- To UNSUBSCRIBE and more, see
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] Unable arrange the functions according to the requirement in the help page of my package.

2016-12-14 Thread Michael Dewey

Dear Pijush

When you say your package demands the functions in a particular order 
what exactly do you mean by that?


On 13/12/2016 10:19, Pijush Das wrote:

Hello Sir,


I am trying to create my package in R. I have few functions for this
package. After including all the functions in the package, I have seen that
the help page does not contain the functions sequentially as it is demanded
by the package. e.g.

The package requires the function arrangement given below:

a()
d()
c()
b()

After building the package , found that function arrangement given below
a()
b()
c()
d()

Another problem which I am facing is given below:
I have created the vignette file in R markdown file format with the help of
VignetteBuilder: knitr. There is no error but after building and checking
the package I unable to see the  vignette.pdf in the Help file.

I have seen that there is a Index.html page in other package.  I able to
create such index.html file but I unable to connect all the function and
the vignette.pdf in that html file.

I unable to understand the document found in the website describing about
how to create an R package.  There I do not find any clue to solve my
problem.


Please help me.


Thank you very much.

regards
Pijush Das

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.



--
Michael
http://www.dewey.myzen.co.uk/home.html

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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] Unable arrange the functions according to the requirement in the help page of my package.

2016-12-14 Thread Jim Lemon
Hi Pijush,
Don't worry about the "arrangement" of the functions in the help file.
They are ordered alphabetically and this has nothing to do with the
order in which they are actually used. The more serious problem is
probably your help files. There should be a "man" (help) file for each
function, usually written in the "Rd" format. These files should be in
the "man" subdirectory of your package directory. Getting the right
files in the right directories is a bit tricky, and I am afraid that
you will just have to plow through the "Writing R Extensions" file to
learn how.

Jim

On Tue, Dec 13, 2016 at 9:19 PM, Pijush Das  wrote:
> Hello Sir,
>
>
> I am trying to create my package in R. I have few functions for this
> package. After including all the functions in the package, I have seen that
> the help page does not contain the functions sequentially as it is demanded
> by the package. e.g.
>
> The package requires the function arrangement given below:
>
> a()
> d()
> c()
> b()
>
> After building the package , found that function arrangement given below
> a()
> b()
> c()
> d()
>
> Another problem which I am facing is given below:
> I have created the vignette file in R markdown file format with the help of
> VignetteBuilder: knitr. There is no error but after building and checking
> the package I unable to see the  vignette.pdf in the Help file.
>
> I have seen that there is a Index.html page in other package.  I able to
> create such index.html file but I unable to connect all the function and
> the vignette.pdf in that html file.
>
> I unable to understand the document found in the website describing about
> how to create an R package.  There I do not find any clue to solve my
> problem.
>
>
> Please help me.
>
>
> Thank you very much.
>
> regards
> Pijush Das
>
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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: [ESS] Can't load libraries after upgrading to R 3.3.2

2016-12-14 Thread Ross.Darnell
A quick google found this

https://martynplummer.wordpress.com/2014/09/08/jags-3-4-0-for-mavericks/

Ross

-Original Message-
From: ESS-help [mailto:ess-help-boun...@r-project.org] On Behalf Of Gonçalo 
Ferraz
Sent: Wednesday, 14 December 2016 2:58 AM
To: ess-help@r-project.org
Subject: [ESS] Can't load libraries after upgrading to R 3.3.2

Hi, 

I just upgraded R to version 3.3.2 on a Mac OS X system. I suspect something 
may have gone wrong with the installation (despite a ‘successfully installed’ 
message) because the R.App is nowhere to be found.
Nevertheless, I can open R in ESS, which how I always use it. The problem 
though, is I can’t install packages from the R command line within ESS. Here is 
a sample error message:

> install.packages("rjags")
--- Please select a CRAN mirror for use in this session --- trying URL 
'https://vps.fmvz.usp.br/CRAN/bin/macosx/mavericks/contrib/3.3/rjags_4-6.tgz' 

Content type 'application/x-gzip' length 249529 bytes (243 KB) 
==
downloaded 243 KB

The downloaded binary packages are in

/var/folders/kf/zkk64rtj5197pzwq94qfls0wgn/T//RtmpuSb7P1/downloaded_packages
> library(rjags)
Loading required package: coda
Error : .onLoad failed in loadNamespace() for 'rjags', details:
 call: dyn.load(file, DLLpath = DLLpath, ...)
 error: unable to load shared object 
'/Library/Frameworks/R.framework/Versions/3.3/Resources/library/rjags/libs/rjags.so':
 
dlopen(/Library/Frameworks/R.framework/Versions/3.3/Resources/library/rjags/libs/rjags.so,
 10): Library not loaded: /usr/local/lib/libjags.4.dylib  Referenced from: 
/Library/Frameworks/R.framework/Versions/3.3/Resources/library/rjags/libs/rjags.so
 Reason: image not found
Error: package or namespace load failed for ‘rjags’

This happens with other packages as well. Does anyone know what may be going on?

Thank you,

Gonçalo
[[alternative HTML version deleted]]

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help
__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help