![]() This is a good thing, it means your settings are so that non failing builds are removed. The folder disappears! I cant check the log. In my case my project is in: Projecten\coffeedata and the logs are in: The log is in the folder next to your package /packagename.Rcheck/00check.txt I don’t have a description file or any of the other folders… or devtools gives me errors.Ĭheck if your project has forbidden characters: dots, dashes or spaces.Ĭheck the log. If your dataset changes, you should update the package. step 6: maintain your dataset if it changes See Further reading to find out more about other ways to share your package. Even worse, you can do what you like with that information, because it’s in the public domain. Now you all know how many coffee I drank. Or you download the source file from the website and install it manually If it’s on github everyone can install the file using devtools, in my case:ĭevtools::install_bitbucket("rmhogervorst/coffeedata") Online: upload your project using git to either Github (many people use it, but can’t restrict access in free version) or Bitbucket (close off your project). That file is shareble and can be installed on someones computer. Once installed you can use the package anytime you like with library(package) But you might want to share your package with colleagues.Īfter you build the source package, a file is created, in my case: If your package is very simple, consisting of only documentation and a datafile, your build will be completed and works.Ĭlick on build & Reload and try out your new package. The endresult is in: /packagename.Rcheck/ The check tries to build your package and checks for common problems. You will probably need to change some stuff based on the check. Then check your package with the check button or devtools::check(). ![]() See also this example in hadley’s babyname package Step 4: describe the package with a vignette.Īfter you changed the files use devtools::document() to create documents. If you look at ?mtcars there is a description of the file. If you don’t give a licence your data is under your copyright and no one can use it.įor datasets a CC0 licence puts the data in the public domain and makes it free to build upon, enhance and reuse the works for any purposes without restriction under copyright or database law.įor packages that contain code (most of the packages) other licenses are better. You might think that the license is a bit too much for a package you build. Then do one of the following (replace coffeedata with your data set’s name).ĭescription: What the package does (one paragraph) And load it so that it’s active in the environment: Locate the file you want to put in the package. I assume that you are now in the rproject you have just started. Ideally you will want to save both the raw file and the cleaned dataset, with a script (or rmarkdown document) that describes the actions you took to clean the raw file. Think about the name, dataset21really is not descriptive nor helpful for you in the future. But this is less important if you only share the package with yourself and friends. Naming packages is really hard, it needs to be descriptive and unique. use lowercase, CoffeeDataSet gets confusing. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |