replace.importFrom: replace the @importFrom statements with a new package

Description Usage Arguments Value Author(s)

Description

Given a file which contains an @importFrom source.pkg func directive, replace this with @importFrom dest.pkg func

Usage

1
  replace.importFrom(func, source.pkg, dest.pkg, file)

Arguments

func

function or function name

source.pkg

character(1) of the source package name (ie where the function is currently defined)

dest.pkg

character(1) of the destination package name (ie where you want the function to be defined)

Value

nothing it will edit the src file, so be very careful!

Author(s)

Mark Cowley, 2012-07-16


drmjc/updateR documentation built on May 15, 2019, 2:41 p.m.