Package in Depends field not imported from: 'evd'
  These packages need to be imported from (in the NAMESPACE file)
  for when this namespace is loaded but not attached.
DPOT: no visible global function definition for 'optim'
mop.rho: no visible global function definition for 'median'
Undefined global functions or variables:
  median optim
Consider adding
  importFrom("stats", "median", "optim")
to your NAMESPACE file.
Package in Depends field not imported from: ‘evd’
  These packages need to be imported from (in the NAMESPACE file)
  for when this namespace is loaded but not attached.
DPOT: no visible global function definition for ‘optim’
mop.rho: no visible global function definition for ‘median’
Undefined global functions or variables:
  median optim
Consider adding
  importFrom("stats", "median", "optim")
to your NAMESPACE file.
Package in Depends field not imported from: ‘evd’
  These packages need to be imported from (in the NAMESPACE file)
  for when this namespace is loaded but not attached.
DPOT: no visible global function definition for ‘optim’
mop.rho: no visible global function definition for ‘median’
Undefined global functions or variables:
  median optim
Consider adding
  importFrom("stats", "median", "optim")
to your NAMESPACE file.
Running examples in ‘evt0-Ex.R’ failed
The error most likely occurred in:

> ### Name: PORT.Hill
> ### Title: Peaks over random threshold Hill estimate
> ### Aliases: PORT.Hill PORT.MOP PORT.RBMOP
> ### Keywords: quasi-reduced bias PORT Hill
> 
> ### ** Examples
> 
> # generate random samples               
> x = rfrechet(50000, loc = 0, scale = 1,shape = 1/0.5)
> 
> # estimate PORT Hill 
> PORT.Hill(x,c(1,500,5000),0.1,"PRBMOP")
Error in any(k < 1) || any(k > n - nq - 1) || any(k == n - nq - 1) ||  : 
  'length = 3' in coercion to 'logical(1)'
Calls: PORT.Hill
Execution halted
Package in Depends field not imported from: ‘evd’
  These packages need to be imported from (in the NAMESPACE file)
  for when this namespace is loaded but not attached.
DPOT: no visible global function definition for ‘optim’
mop.rho: no visible global function definition for ‘median’
Undefined global functions or variables:
  median optim
Consider adding
  importFrom("stats", "median", "optim")
to your NAMESPACE file.
Running examples in ‘evt0-Ex.R’ failed
The error most likely occurred in:

> ### Name: PORT.Hill
> ### Title: Peaks over random threshold Hill estimate
> ### Aliases: PORT.Hill PORT.MOP PORT.RBMOP
> ### Keywords: quasi-reduced bias PORT Hill
> 
> ### ** Examples
> 
> # generate random samples               
> x = rfrechet(50000, loc = 0, scale = 1,shape = 1/0.5)
> 
> # estimate PORT Hill 
> PORT.Hill(x,c(1,500,5000),0.1,"PRBMOP")
Error in any(k < 1) || any(k > n - nq - 1) || any(k == n - nq - 1) ||  : 
  'length = 3' in coercion to 'logical(1)'
Calls: PORT.Hill
Execution halted
Package in Depends field not imported from: 'evd'
  These packages need to be imported from (in the NAMESPACE file)
  for when this namespace is loaded but not attached.
DPOT: no visible global function definition for 'optim'
mop.rho: no visible global function definition for 'median'
Undefined global functions or variables:
  median optim
Consider adding
  importFrom("stats", "median", "optim")
to your NAMESPACE file.
Package in Depends field not imported from: ‘evd’
  These packages need to be imported from (in the NAMESPACE file)
  for when this namespace is loaded but not attached.
DPOT: no visible global function definition for ‘optim’
mop.rho: no visible global function definition for ‘median’
Undefined global functions or variables:
  median optim
Consider adding
  importFrom("stats", "median", "optim")
to your NAMESPACE file.
Package in Depends field not imported from: ‘evd’
  These packages need to be imported from (in the NAMESPACE file)
  for when this namespace is loaded but not attached.
DPOT: no visible global function definition for ‘optim’
mop.rho: no visible global function definition for ‘median’
Undefined global functions or variables:
  median optim
Consider adding
  importFrom("stats", "median", "optim")
to your NAMESPACE file.
Package in Depends field not imported from: ‘evd’
  These packages need to be imported from (in the NAMESPACE file)
  for when this namespace is loaded but not attached.
DPOT: no visible global function definition for ‘optim’
mop.rho: no visible global function definition for ‘median’
Undefined global functions or variables:
  median optim
Consider adding
  importFrom("stats", "median", "optim")
to your NAMESPACE file.
Package in Depends field not imported from: ‘evd’
  These packages need to be imported from (in the NAMESPACE file)
  for when this namespace is loaded but not attached.
DPOT: no visible global function definition for ‘optim’
mop.rho: no visible global function definition for ‘median’
Undefined global functions or variables:
  median optim
Consider adding
  importFrom("stats", "median", "optim")
to your NAMESPACE file.
Package in Depends field not imported from: 'evd'
  These packages need to be imported from (in the NAMESPACE file)
  for when this namespace is loaded but not attached.
DPOT: no visible global function definition for 'optim'
mop.rho: no visible global function definition for 'median'
Undefined global functions or variables:
  median optim
Consider adding
  importFrom("stats", "median", "optim")
to your NAMESPACE file.
Package in Depends field not imported from: ‘evd’
  These packages need to be imported from (in the NAMESPACE file)
  for when this namespace is loaded but not attached.
DPOT: no visible global function definition for ‘optim’
mop.rho: no visible global function definition for ‘median’
Undefined global functions or variables:
  median optim
Consider adding
  importFrom("stats", "median", "optim")
to your NAMESPACE file.
Package in Depends field not imported from: ‘evd’
  These packages need to be imported from (in the NAMESPACE file)
  for when this namespace is loaded but not attached.
DPOT: no visible global function definition for ‘optim’
mop.rho: no visible global function definition for ‘median’
Undefined global functions or variables:
  median optim
Consider adding
  importFrom("stats", "median", "optim")
to your NAMESPACE file.
Package in Depends field not imported from: 'evd'
  These packages need to be imported from (in the NAMESPACE file)
  for when this namespace is loaded but not attached.
DPOT: no visible global function definition for 'optim'
mop.rho: no visible global function definition for 'median'
Undefined global functions or variables:
  median optim
Consider adding
  importFrom("stats", "median", "optim")
to your NAMESPACE file.