title: Build R package with C Code for Linux and Windows
body: <p>I have been doing research and I can't quite figure out how to build my R package, that calls C functions, in order for it to work in both Windows and Linux environments.  I am building the package on a Linux machine.</p>
  
  <p>I have two C files, one.C and two.C, I place the two files in the src directory after using package.skeleton(...).  In the namespace file I use the command: useDynLib(one,two).  Is this correct?  Or do I need to put the actual function names instead of the file names?  Do I need to export the function names?</p>
  
  <p>Do I need to put the .so files in the src directory or will these be created automatically?  I am worried then it won't work on a windows machine which needs a .dll file.</p>
  
  <p>As you can see I'm a little confused, thanks for the help.</p>