Build an R package tarball without divulging your user name in the tarball











up vote
9
down vote

favorite
2












In R CMD build, the ID of the user is automatically inserted into the DESCRIPTION file. This is problematic because I work in a corporate computing environment and I do not want to divulge my user ID.



Reproducible example:



git clone git@github.com:tidyverse/reprex
R CMD build reprex
rm -rf reprex
tar -xf reprex*tar.gz
grep Packaged reprex/DESCRIPTION


Current output:



Packaged: 2018-11-06 14:01:50 UTC; <MY USER ID>


Desired output



Packaged: 2018-11-06 14:01:50 UTC; 









share|improve this question
























  • Why don't you just remove the name and re-compress it?
    – Aravind Voggu
    Nov 9 at 3:23










  • Doesn't seem too hard now that you mention it, but it still feels like something I should not have to clean out manually.
    – landau
    Nov 9 at 3:33












  • I added a one line script. That would be much easier than going and changing the internals, then you'll have to make changes every time you update your language. If you're using a build system, try adding this to it. Travis should have post build hooks and is free for opensource projects, try it, it's easy. Or add the script as a bash alias so you don't have to type all of it everytime.
    – Aravind Voggu
    Nov 9 at 3:37

















up vote
9
down vote

favorite
2












In R CMD build, the ID of the user is automatically inserted into the DESCRIPTION file. This is problematic because I work in a corporate computing environment and I do not want to divulge my user ID.



Reproducible example:



git clone git@github.com:tidyverse/reprex
R CMD build reprex
rm -rf reprex
tar -xf reprex*tar.gz
grep Packaged reprex/DESCRIPTION


Current output:



Packaged: 2018-11-06 14:01:50 UTC; <MY USER ID>


Desired output



Packaged: 2018-11-06 14:01:50 UTC; 









share|improve this question
























  • Why don't you just remove the name and re-compress it?
    – Aravind Voggu
    Nov 9 at 3:23










  • Doesn't seem too hard now that you mention it, but it still feels like something I should not have to clean out manually.
    – landau
    Nov 9 at 3:33












  • I added a one line script. That would be much easier than going and changing the internals, then you'll have to make changes every time you update your language. If you're using a build system, try adding this to it. Travis should have post build hooks and is free for opensource projects, try it, it's easy. Or add the script as a bash alias so you don't have to type all of it everytime.
    – Aravind Voggu
    Nov 9 at 3:37















up vote
9
down vote

favorite
2









up vote
9
down vote

favorite
2






2





In R CMD build, the ID of the user is automatically inserted into the DESCRIPTION file. This is problematic because I work in a corporate computing environment and I do not want to divulge my user ID.



Reproducible example:



git clone git@github.com:tidyverse/reprex
R CMD build reprex
rm -rf reprex
tar -xf reprex*tar.gz
grep Packaged reprex/DESCRIPTION


Current output:



Packaged: 2018-11-06 14:01:50 UTC; <MY USER ID>


Desired output



Packaged: 2018-11-06 14:01:50 UTC; 









share|improve this question















In R CMD build, the ID of the user is automatically inserted into the DESCRIPTION file. This is problematic because I work in a corporate computing environment and I do not want to divulge my user ID.



Reproducible example:



git clone git@github.com:tidyverse/reprex
R CMD build reprex
rm -rf reprex
tar -xf reprex*tar.gz
grep Packaged reprex/DESCRIPTION


Current output:



Packaged: 2018-11-06 14:01:50 UTC; <MY USER ID>


Desired output



Packaged: 2018-11-06 14:01:50 UTC; 






r r-package






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 9 at 2:55

























asked Nov 6 at 14:07









landau

1,109921




1,109921












  • Why don't you just remove the name and re-compress it?
    – Aravind Voggu
    Nov 9 at 3:23










  • Doesn't seem too hard now that you mention it, but it still feels like something I should not have to clean out manually.
    – landau
    Nov 9 at 3:33












  • I added a one line script. That would be much easier than going and changing the internals, then you'll have to make changes every time you update your language. If you're using a build system, try adding this to it. Travis should have post build hooks and is free for opensource projects, try it, it's easy. Or add the script as a bash alias so you don't have to type all of it everytime.
    – Aravind Voggu
    Nov 9 at 3:37




















  • Why don't you just remove the name and re-compress it?
    – Aravind Voggu
    Nov 9 at 3:23










  • Doesn't seem too hard now that you mention it, but it still feels like something I should not have to clean out manually.
    – landau
    Nov 9 at 3:33












  • I added a one line script. That would be much easier than going and changing the internals, then you'll have to make changes every time you update your language. If you're using a build system, try adding this to it. Travis should have post build hooks and is free for opensource projects, try it, it's easy. Or add the script as a bash alias so you don't have to type all of it everytime.
    – Aravind Voggu
    Nov 9 at 3:37


















Why don't you just remove the name and re-compress it?
– Aravind Voggu
Nov 9 at 3:23




Why don't you just remove the name and re-compress it?
– Aravind Voggu
Nov 9 at 3:23












Doesn't seem too hard now that you mention it, but it still feels like something I should not have to clean out manually.
– landau
Nov 9 at 3:33






Doesn't seem too hard now that you mention it, but it still feels like something I should not have to clean out manually.
– landau
Nov 9 at 3:33














I added a one line script. That would be much easier than going and changing the internals, then you'll have to make changes every time you update your language. If you're using a build system, try adding this to it. Travis should have post build hooks and is free for opensource projects, try it, it's easy. Or add the script as a bash alias so you don't have to type all of it everytime.
– Aravind Voggu
Nov 9 at 3:37






I added a one line script. That would be much easier than going and changing the internals, then you'll have to make changes every time you update your language. If you're using a build system, try adding this to it. Travis should have post build hooks and is free for opensource projects, try it, it's easy. Or add the script as a bash alias so you don't have to type all of it everytime.
– Aravind Voggu
Nov 9 at 3:37














1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted
+50










I'm not aware of doing this internally, but, why don't you just remove the ID and repackage it?



git clone git@github.com:tidyverse/reprex
R CMD build reprex
rm -rf reprex
tar -xf reprex*tar.gz
grep -l "Packaged" reprex/DESCRIPTION | xargs sed 's/UTC;.*/UTC;/' > reprex/DESCRIPTION


Now compress it again with tar. Probably add this to your build system.






share|improve this answer

















  • 1




    Yeah, I think this is the appropriate way to go. Reminds me of github.com/r-lib/pkgdown/issues/492, actually.
    – landau
    Nov 9 at 3:42











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53173552%2fbuild-an-r-package-tarball-without-divulging-your-user-name-in-the-tarball%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote



accepted
+50










I'm not aware of doing this internally, but, why don't you just remove the ID and repackage it?



git clone git@github.com:tidyverse/reprex
R CMD build reprex
rm -rf reprex
tar -xf reprex*tar.gz
grep -l "Packaged" reprex/DESCRIPTION | xargs sed 's/UTC;.*/UTC;/' > reprex/DESCRIPTION


Now compress it again with tar. Probably add this to your build system.






share|improve this answer

















  • 1




    Yeah, I think this is the appropriate way to go. Reminds me of github.com/r-lib/pkgdown/issues/492, actually.
    – landau
    Nov 9 at 3:42















up vote
1
down vote



accepted
+50










I'm not aware of doing this internally, but, why don't you just remove the ID and repackage it?



git clone git@github.com:tidyverse/reprex
R CMD build reprex
rm -rf reprex
tar -xf reprex*tar.gz
grep -l "Packaged" reprex/DESCRIPTION | xargs sed 's/UTC;.*/UTC;/' > reprex/DESCRIPTION


Now compress it again with tar. Probably add this to your build system.






share|improve this answer

















  • 1




    Yeah, I think this is the appropriate way to go. Reminds me of github.com/r-lib/pkgdown/issues/492, actually.
    – landau
    Nov 9 at 3:42













up vote
1
down vote



accepted
+50







up vote
1
down vote



accepted
+50




+50




I'm not aware of doing this internally, but, why don't you just remove the ID and repackage it?



git clone git@github.com:tidyverse/reprex
R CMD build reprex
rm -rf reprex
tar -xf reprex*tar.gz
grep -l "Packaged" reprex/DESCRIPTION | xargs sed 's/UTC;.*/UTC;/' > reprex/DESCRIPTION


Now compress it again with tar. Probably add this to your build system.






share|improve this answer












I'm not aware of doing this internally, but, why don't you just remove the ID and repackage it?



git clone git@github.com:tidyverse/reprex
R CMD build reprex
rm -rf reprex
tar -xf reprex*tar.gz
grep -l "Packaged" reprex/DESCRIPTION | xargs sed 's/UTC;.*/UTC;/' > reprex/DESCRIPTION


Now compress it again with tar. Probably add this to your build system.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 9 at 3:34









Aravind Voggu

751413




751413








  • 1




    Yeah, I think this is the appropriate way to go. Reminds me of github.com/r-lib/pkgdown/issues/492, actually.
    – landau
    Nov 9 at 3:42














  • 1




    Yeah, I think this is the appropriate way to go. Reminds me of github.com/r-lib/pkgdown/issues/492, actually.
    – landau
    Nov 9 at 3:42








1




1




Yeah, I think this is the appropriate way to go. Reminds me of github.com/r-lib/pkgdown/issues/492, actually.
– landau
Nov 9 at 3:42




Yeah, I think this is the appropriate way to go. Reminds me of github.com/r-lib/pkgdown/issues/492, actually.
– landau
Nov 9 at 3:42


















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53173552%2fbuild-an-r-package-tarball-without-divulging-your-user-name-in-the-tarball%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Schultheiß

Verwaltungsgliederung Dänemarks

Liste der Kulturdenkmale in Wilsdruff