[R] Loading circular package from Rprofile.site

2013-01-13 Thread Ved P. Sharma
Hi,

I installed circular package and I wanted to load it automatically
when R starts up, so I added the following lines in file
Rprofile.site,

.First - function()
 library(circular)

When R starts up, it gives me the following error:
--
Loading required package: boot
Loading required package: graphics
Loading required package: stats
Error : .onAttach failed in attachNamespace() for 'circular', details:
  call: fun(libname, pkgname)
  error: could not find function packageDescription
Error: package/namespace load failed for ‘circular’
--

What's surprising is that instead of loading circular from the
Rprofile.site, if I run R and load this package

 library(circular)

it works fine and gives me the following message:
--
Loading required package: boot
Package 'circular', 0.4-3 (2011-07-18). Type 'help(Circular)' for
summary information.
 Please report any bugs or comments to Claudio Agostinelli clau...@unive.it
 The package redefine how function 'var' and 'sd' works
 In particular, (try 'methods(var)' and 'methods(sd)')
 notice that 'var.default' ('sd.default')is an alias for the original
'var' ('sd') function
 and that a method for data.frame is available.


Attaching package: ‘circular’

The following object(s) are masked from ‘package:stats’:

sd, var
--

I am puzzled as to why there are different responses to the same
command? FYI, I am running R version 2.15.2 (2012-10-26) on Windows 7,
i386-w64-mingw32/i386 (32-bit)

I have other installed packages, which load up fine from the
Rprofile.site at R startup. The error seems to occur only with
circular.

Ved

__
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] Drawing a dotted circle.

2013-01-13 Thread Ved P. Sharma
Thanks everyone for suggesting the alternative draw.circle.

Ved

On Sat, Jan 12, 2013 at 12:50 PM, Jose Iparraguirre
jose.iparragui...@ageuk.org.uk wrote:
 Don't know, but you can use the function draw.circle in the plotrix package.
 Hope this helps,
 Jose
 
 From: r-help-boun...@r-project.org [r-help-boun...@r-project.org] On Behalf 
 Of Ved P. Sharma [vedsha...@gmail.com]
 Sent: 12 January 2013 07:43
 To: r-help@r-project.org
 Subject: [R] Drawing a dotted circle.

 Hi,

 I am trying to draw a dotted circle by using symbols command:

 symbols(0, 0, circles = 1, inches = FALSE, fg = 'gray', lty=2)

 But it gives me a solid line. I was just wondering whether am I making a
 mistake?

 Ved

 [[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.

 Wrap Up and Run 10k is back!

 Also, new for 2013 – 2km intergenerational walks at selected venues. So 
 recruit a buddy, dust off the trainers and beat the winter blues by
 signing up now:

 http://www.ageuk.org.uk/10k

  Milton Keynes | Oxford | Sheffield | Crystal Palace | Exeter 
 | Harewood House, Leeds |
  Tatton Park, Cheshire | Southampton | 
 Coventry



 Age UK Improving later life

 http://www.ageuk.org.uk




 ---
 Age UK is a registered charity and company limited by guarantee, (registered 
 charity number 1128267, registered company number 6825798).
 Registered office: Tavis House, 1-6 Tavistock Square, London WC1H 9NA.

 For the purposes of promoting Age UK Insurance, Age UK is an Appointed 
 Representative of Age UK Enterprises Limited, Age UK is an Introducer
 Appointed Representative of JLT Benefit Solutions Limited and Simplyhealth 
 Access for the purposes of introducing potential annuity and health
 cash plans customers respectively.  Age UK Enterprises Limited, JLT Benefit 
 Solutions Limited and Simplyhealth Access are all authorised and
 regulated by the Financial Services Authority.
 --

 This email and any files transmitted with it are confidential and intended 
 solely for the use of the individual or entity to whom they are
 addressed. If you receive a message in error, please advise the sender and 
 delete immediately.

 Except where this email is sent in the usual course of our business, any 
 opinions expressed in this email are those of the author and do not
 necessarily reflect the opinions of Age UK or its subsidiaries and associated 
 companies. Age UK monitors all e-mail transmissions passing
 through its network and may block or modify mails which are deemed to be 
 unsuitable.

 Age Concern England (charity number 261794) and Help the Aged (charity number 
 272786) and their trading and other associated companies merged
 on 1st April 2009.  Together they have formed the Age UK Group, dedicated to 
 improving the lives of people in later life.  The three national
 Age Concerns in Scotland, Northern Ireland and Wales have also merged with 
 Help the Aged in these nations to form three registered charities:
 Age Scotland, Age NI, Age Cymru.











__
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] Drawing a dotted circle.

2013-01-12 Thread Ved P. Sharma
Hi Arun,

Thanks for your reply.

I am running R 2.15.2 (32-bit) on Windows 7. Please take a look at the
attached image of the circle, which does not look dotted to me. I also
tried it on RStudio and it gives the same result, i.e. solid line.

Ved

On Sat, Jan 12, 2013 at 11:43 AM, arun smartpink...@yahoo.com wrote:

 HI Ved,

 I was able to get the dotted circle using the same command.  I am using R 
 2.15 on Ubuntu 12.04.
 A.K.




 - Original Message -
 From: Ved P. Sharma vedsha...@gmail.com
 To: r-help@r-project.org
 Cc:
 Sent: Saturday, January 12, 2013 2:43 AM
 Subject: [R] Drawing a dotted circle.

 Hi,

 I am trying to draw a dotted circle by using symbols command:

 symbols(0, 0, circles = 1, inches = FALSE, fg = 'gray', lty=2)

 But it gives me a solid line. I was just wondering whether am I making a
 mistake?

 Ved

 [[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-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.