{"entities":{"Q5983015":{"pageid":12575448,"ns":120,"title":"Item:Q5983015","lastrevid":56644278,"modified":"2026-03-13T12:15:06Z","type":"item","id":"Q5983015","labels":{"en":{"language":"en","value":"scriptloc"}},"descriptions":{"en":{"language":"en","value":"Get the Location of the R Script that is Being Sourced/Executed"}},"aliases":{},"claims":{"P31":[{"mainsnak":{"snaktype":"value","property":"P31","hash":"438d0eef0223375d3a92def8ffc6a10a8bf1ca95","datavalue":{"value":{"entity-type":"item","numeric-id":57080,"id":"Q57080"},"type":"wikibase-entityid"},"datatype":"wikibase-item"},"type":"statement","id":"Q5983015$6A54254F-4B1C-4824-B7CE-C1D2DF72EAF5","rank":"normal"}],"P1459":[{"mainsnak":{"snaktype":"value","property":"P1459","hash":"8e710d7f55044631015d59798de5b8ea438c9c2a","datavalue":{"value":"Provides functions to retrieve the location of R scripts loaded through the source() function or run from the command line using the Rscript command. This functionality is analogous to the Bash shell's ${BASH_SOURCE[0]}. Users can first set the project root's path relative to the script path and then all subsequent paths relative to the root. This system ensures that all paths lead to the same location regardless of where any script is executed/loaded from without resorting to the use of setwd() at the top of the scripts.","type":"string"},"datatype":"string"},"type":"statement","id":"Q5983015$2112B191-FC61-4875-97D0-B9D4767539A8","rank":"normal"}],"P170":[{"mainsnak":{"snaktype":"value","property":"P170","hash":"f5f49b55a138fc210bb0de4028a45a9658974386","datavalue":{"value":{"time":"+2023-08-17T00:00:00Z","timezone":0,"before":0,"after":0,"precision":11,"calendarmodel":"http://www.wikidata.org/entity/Q1985727"},"type":"time"},"datatype":"time"},"type":"statement","id":"Q5983015$D955E32A-C361-45E4-8324-98327B36BDC9","rank":"normal"}],"P132":[{"mainsnak":{"snaktype":"value","property":"P132","hash":"2cd9663599cb012c24c42164f1aeb49c4d6af9f9","datavalue":{"value":"1.0.0","type":"string"},"datatype":"string"},"type":"statement","qualifiers":{"P28":[{"snaktype":"value","property":"P28","hash":"441006eb796e3a3facfc20a479629ee7d34004ed","datavalue":{"value":{"time":"+2023-08-17T00:00:00Z","timezone":0,"before":0,"after":0,"precision":11,"calendarmodel":"http://www.wikidata.org/entity/Q1985727"},"type":"time"},"datatype":"time"}]},"qualifiers-order":["P28"],"id":"Q5983015$36496E7D-7F8B-475D-8B18-53C6E46BD362","rank":"normal"}],"P16":[{"mainsnak":{"snaktype":"value","property":"P16","hash":"c3cfffac4e30b141c104988228349526386b5596","datavalue":{"value":{"entity-type":"item","numeric-id":5983014,"id":"Q5983014"},"type":"wikibase-entityid"},"datatype":"wikibase-item"},"type":"statement","id":"Q5983015$5FD26D1F-B109-4F97-96C8-7BD22E43B7DD","rank":"normal"}],"P19":[{"mainsnak":{"snaktype":"value","property":"P19","hash":"224c2c5348c8f3b824e53f5e91b75f01887d9c59","datavalue":{"value":{"entity-type":"item","numeric-id":5983014,"id":"Q5983014"},"type":"wikibase-entityid"},"datatype":"wikibase-item"},"type":"statement","id":"Q5983015$D3758CBF-8B2F-4D95-8444-C0130A9EDF03","rank":"normal"}],"P163":[{"mainsnak":{"snaktype":"value","property":"P163","hash":"798f7287b894eadb2b35f0ab871accc413b115fd","datavalue":{"value":{"entity-type":"item","numeric-id":56842,"id":"Q56842"},"type":"wikibase-entityid"},"datatype":"wikibase-item"},"type":"statement","id":"Q5983015$1EF60B55-14BA-4A20-B434-9913376821F0","rank":"normal"},{"mainsnak":{"snaktype":"value","property":"P163","hash":"b26fc7b7fb6977874892e45a4763e1c915d89707","datavalue":{"value":{"entity-type":"item","numeric-id":57086,"id":"Q57086"},"type":"wikibase-entityid"},"datatype":"wikibase-item"},"type":"statement","qualifiers":{"P188":[{"snaktype":"value","property":"P188","hash":"fd9ff1b42038a054eaca1a95bdd6c17b2bccd412","datavalue":{"value":"https://cran.r-project.org/web/packages/scriptloc/LICENSE","type":"string"},"datatype":"url"}]},"qualifiers-order":["P188"],"id":"Q5983015$5FA2123A-A4D5-40F8-8E3F-F7DFC0A0D9E3","rank":"normal"}],"P229":[{"mainsnak":{"snaktype":"value","property":"P229","hash":"9a64454ff602e761a0f959caa1b6ec9170a635e9","datavalue":{"value":"scriptloc","type":"string"},"datatype":"external-id"},"type":"statement","id":"Q5983015$88F5AA2B-13C2-4176-B314-BAF9F57B7D7C","rank":"normal"}],"P1460":[{"mainsnak":{"snaktype":"value","property":"P1460","hash":"908c3454b3659c4b140ccce33c5aee31081edc8d","datavalue":{"value":{"entity-type":"item","numeric-id":5976450,"id":"Q5976450"},"type":"wikibase-entityid"},"datatype":"wikibase-item"},"type":"statement","id":"Q5983015$5B2F9C27-4CF3-4A0E-866F-1265AC2EC466","rank":"normal"}],"P114":[{"mainsnak":{"snaktype":"value","property":"P114","hash":"251fd109c2cd8c1ee39b48cd109c9f4b1c9fcf5c","datavalue":{"value":{"entity-type":"item","numeric-id":13519,"id":"Q13519"},"type":"wikibase-entityid"},"datatype":"wikibase-item"},"type":"statement","id":"Q5983015$BA00302D-413C-48CE-8C15-452EBF3D416A","rank":"normal"}],"P342":[{"mainsnak":{"snaktype":"value","property":"P342","hash":"fe12f5e01d046912e5e7daea96ad81df7a13e944","datavalue":{"value":{"entity-type":"item","numeric-id":13519,"id":"Q13519"},"type":"wikibase-entityid"},"datatype":"wikibase-item"},"type":"statement","qualifiers":{"P132":[{"snaktype":"value","property":"P132","hash":"91c344ea9128a4f30537b5bb66850514871d3769","datavalue":{"value":"\u2265 3.6.0","type":"string"},"datatype":"string"}]},"qualifiers-order":["P132"],"id":"Q5983015$F8E97A3A-D954-46E7-947B-FDC821067528","rank":"normal"}]},"sitelinks":{"mardi":{"site":"mardi","title":"Scriptloc","badges":[]}}}}}