Skip to content
Prev 206630 / 398503 Next

new R package. How to hide data file

Dear R community,
I'm in the process of writing a package.

One of the functions reads a whole ascii file, full of data:
SYMINFO is now an array character with roughly 14000 elements.

I thought the best way to use this file in the package was to list it, together with the rest of
useful functions, in the list= field of package.skeleton. This way, a "SYMINFO.rda" is created in 
the data directory of the new package. It can, then, be used by all functons needing it through
a 

data(SYMINFO)

line. I have created and installed the package and things work.

But I would like to make SYMINFO invisible to users. If I call SYMINFO as .SYMINFO, the functions needing
this bit of data do not work anymore, even if I replaced 

data(SYMINFO)

with

data(.SYMINFO)


Does anyone have ideas why this is happening? Would you handle the whole process differently?


Kind regards,

J

Dr James Foadi PhD
Membrane Protein Laboratory (MPL)
Diamond Light Source Ltd
Diamond House
Harewell Science and Innovation Campus
Chilton, Didcot
Oxfordshire OX11 0DE

Email    :  james.foadi at diamond.ac.uk
Alt Email:  j.foadi at imperial.ac.uk