Hello,
I sourced successfully my function().
I need to load libraries, so I wrote this inside my function():
function()
{
#load needed library
library(plyr)
library(car)
/...
}
It is OK, but I have this on my invite command when running the function:
function()
Loading required
Perhaps the longest function in base R I know of:
suppressPackageStartupMessages
e.g.,
suppressPackageStartupMessages(library(zoo))
Michael
On Thu, Feb 9, 2012 at 12:44 PM, Arnaud Gaboury
arnaud.gabo...@a2ct2.com wrote:
Hello,
I sourced successfully my function().
I need to load
.
-Original Message-
From: R. Michael Weylandt [mailto:michael.weyla...@gmail.com]
Sent: jeudi 9 février 2012 19:26
To: Arnaud Gaboury
Cc: r-help@r-project.org
Subject: Re: [R] loading packages in a function
Perhaps the longest function in base R I know of:
suppressPackageStartupMessages
...@gmail.com]
Sent: jeudi 9 février 2012 19:26
To: Arnaud Gaboury
Cc: r-help@r-project.org
Subject: Re: [R] loading packages in a function
Perhaps the longest function in base R I know of:
suppressPackageStartupMessages
e.g.,
suppressPackageStartupMessages(library(zoo))
Michael
Ah, I feel stupid!
OK, it works for me.
TY for your help
Arnaud Gaboury
A2CT2 Ltd.
-Original Message-
From: Sarah Goslee [mailto:sarah.gos...@gmail.com]
Sent: jeudi 9 février 2012 20:02
To: Arnaud Gaboury
Cc: r-help@r-project.org
Subject: Re: [R] loading packages in a function
5 matches
Mail list logo