Hol a szkript?

Body:

Habár írtam már pár automatikusan futó R szkriptet, mindig fejtörést okozott a munkakönyvtár beállítása. Hacsak nem eleve a szükséges mappában indult el az Rscript (márpedig a cron a $HOME-ban indítja őket), minden egyes kód a
setwd("kódot/tartalmazó/mappa")
paranccsal kezdődött. Ezzel a kénylemetlenséggel egészen addig együtt tudtam élni, amíg nem kellett megosztani a kódot; ezzel a módszerrel ugyanis amellett, hogy mások gépén nem működik, azt is megmutatja, hogy én hol tartom az adott projekt fájljait, amit nem tartok szerencsésnek.

Az Rscript programnak átadhatunk különböző paramétereket, ezek közül az egyik első a futtatandó szkript elérési útja. Az argumentumokat a commandArgs függvény visszaadja, amik közül ki lehet szedni a futtatott fájl címét – így azt már csak a dirname függvénynek kell odaadni, hogy megkapjam az eredeti kérdésre a választ. Az egészet becsomagoltam egy függvénybe:

Mostmár minden szkript első sora ugyan az:
setwd(get_script_dir())

Via:: Hol a szkript?

459 Responses to Hol a szkript?

  1. Pingback: Cialis 20mg prix en pharmacie

  2. Pingback: Viagra generico

  3. Pingback: Cialis 5 mg

  4. Pingback: Viagra great britain

  5. Pingback: Cialis online

  6. Pingback: Cialis great britain

  7. Pingback: Viagra lowest price

  8. Pingback: Cialis generique

  9. Pingback: Generic cialis

  10. Pingback: Cialis 5 mg

  11. Pingback: writeessay

  12. Pingback: Cialis online

  13. Pingback: Cialis coupon

  14. Pingback: Cialis coupon

  15. Pingback: Ambika Ahuja Jaipur Escorts

  16. Pingback: Neha Tyagi Jaipur Escorts Services

  17. Pingback: JAIPUR ESCORTS SERVICES ALIYA SINHA

  18. Pingback: BANGALORE COMPANION ESCORTS

  19. Pingback: Dhruvi Jaipur Escorts Services

  20. Pingback: JAIPUR ESCORTS MODEL DRISHYA

  21. Pingback: Heena Khan Bangalore Independent Escorts

  22. Pingback: Jiya Malik High Profile Jaipur Escorts Model

  23. Pingback: FUN WITH JAIPUR ESCORTS PUJA KAUR

  24. Pingback: Rozlyn Bangalore Escorts Services

  25. Pingback: Sapna Chaudhary Escorts Services in Bangalore

  26. Pingback: Selly Arora Independent Bangalore Escorts

  27. Pingback: Enjoy With Jaipur Escorts Tanisha Walia

  28. Pingback: RUBEENA RUSSIAN BANGALORE ESCORTS

  29. Pingback: Bristy Roy Independent Bangalore Escorts

  30. Pingback: SRUTHI PATHAK MODEL Escorts in Bangalore

  31. Pingback: Bangalore Escorts Sneha Despandey

  32. Pingback: MODEL HONEY PREET Escorts in Bangalore

  33. Pingback: Radhika Apte Model Escort in Bangalore

  34. Pingback: Goa Escorts Services Eva J Law

  35. Pingback: Fiza Khan Kolkata Escorts Services

  36. Pingback: Ruby Sen Kolkata Independent Escorts

  37. Pingback: Diana Diaz Goa Independent Escorts Services

  38. Pingback: Diksha Arya Independent Escorts Services in Kolkata

  39. Pingback: Devika Kakkar Goa Escorts Services

  40. Pingback: Rebecca Desuza Goa Independent Escorts Services

  41. Pingback: Yamini Mittal Independent Escorts Services in Goa

  42. Pingback: Simmi Mittal Kolkata Escorts Services

  43. Pingback: Kolkata Escorts Services Ragini Mehta

  44. Pingback: Navya Sharma Independent Kolkata Escorts Services

  45. Pingback: Elisha Roy Goa Independent Escorts Services

  46. Pingback: Alisha Oberoi Independent Escorts in Kolkata

  47. Pingback: Divya Arora Goa Independent Escorts Services

  48. Pingback: Simran Batra Independent Escorts in Kolkata

  49. Pingback: Ashna Ahuja Escorts Services in Kolkata

  50. Pingback: Sofia Desai Escorts Services in Goa

  51. Pingback: Goa Escorts Services Drishti Goyal

  52. Pingback: Mayra Khan Escorts Services in Kolkata

  53. Pingback: Sruthi Pathak Escorts in Bangalore

  54. Pingback: Ambika Ahuja Jaipur Escorts Services

  55. Pingback: http://cialisvi.com/

  56. Pingback: Sruthi Pathak Bangalore Female Escorts

  57. Pingback: buy cialis online safely

  58. Pingback: Sruthi Pathak Bangalore Escorts Services

  59. Pingback: Trully Independent Bangalore Escorts Services

  60. Pingback: tedwap.me

  61. Pingback: click here

  62. Pingback: click

  63. Pingback: Fiza Khan Kolkata Independent Call Girls Services

  64. Pingback: cialis generic

  65. Pingback: Ruchika Roy Kolkata Escorts Call Girls Services

  66. Pingback: 2019

  67. Pingback: cleantalkorg2.ru

  68. Pingback: #macron #Lassalle

  69. Pingback: a2019-2020

  70. Pingback: facebook

  71. Pingback: facebook1

  72. Pingback: javsearch.mobi

  73. Pingback: Fiza Khan Kolkata Independent Escorts Call Girls Services

  74. Pingback: Fiza Khan Kolkata Call Girls Escorts Services

  75. Pingback: Diksha Arya Kolkata Escorts Call Girls Services

  76. Pingback: Diksha Arya Kolkata Independent Escorts Call Girls Services

  77. Pingback: cialis without a doctor's prescription usa

  78. Pingback: highest rated canadian pharmacies

  79. Pingback: Viagra pills

  80. Pingback: Viagra 5 mg

  81. Pingback: Canadian viagra

  82. Pingback: Viagra 20 mg

  83. Pingback: Cheap viagra

  84. Pingback: Viagra great britain

  85. Pingback: Cialis 5 mg

  86. Pingback: Cialis 20mg

  87. Pingback: buy tadalafil online

  88. Pingback: Cheap

  89. Pingback: Nidika Offer Call Girls in Bangalore

  90. Pingback: Viagra for daily use

  91. Pingback: Viagra 20 mg

  92. Pingback: buy cheap viagra coupon

  93. Pingback: buy viagra delhi

  94. Pingback: buy viagra online cheap

  95. Pingback: buy levitation discs

  96. Pingback: levitra 20 mg dosage

  97. Pingback: cheapest levitra online

  98. Pingback: levitra generic online

  99. Pingback: buy viagra with no prescription

  100. Pingback: Viagra alternative

  101. Pingback: Viagra 5mg

  102. Pingback: Viagra sans ordonnance

  103. Pingback: we-b-tv.com

  104. Pingback: hs;br

  105. Pingback: tureckie_serialy_na_russkom_jazyke

  106. Pingback: tureckie_serialy

  107. Pingback: 00-tv.com

  108. Pingback: +1+

  109. Pingback: æóêè+2+ñåðèÿ

  110. Pingback: Ñìîòðåòü ñåðèàëû îíëàéí âñå ñåðèè ïîäðÿä

  111. Pingback: Ñìîòðåòü âñå ñåðèè ïîäðÿä

  112. Pingback: watch

  113. Pingback: ++++++

  114. Pingback: HD-720

  115. Pingback: guardians+of+the+galaxy+2

  116. Pingback: strong woman do bong soon

  117. Pingback: my id is gangnam beauty

  118. Pingback: 2020

  119. Pingback: kpop+star+season+6+ep+9

  120. Pingback: Video

  121. Pingback: 1 2 3 4 5 6 7 8 9 10

  122. Pingback: wwin-tv.com

  123. Pingback: Hyderabad Escorts Call Girls Services

  124. Pingback: Pune Escorts Services Call Girls

  125. Pingback: movies

  126. Pingback: movies online

  127. Pingback: karan johar

  128. Pingback: Top Movies

  129. Pingback: Movies1

  130. Pingback: 11 10 2019

  131. Pingback: Bangalore Cheap Escorts Sevices

  132. Pingback: amoxicillin 500mg

  133. Pingback: smotretonline2015.ru

  134. Pingback: Serial smotret

  135. Pingback: kinokrad

  136. Pingback: kinokrad 2020

  137. Pingback: ñïèñîê íîâûõ ôèëüìîâ

  138. Pingback: Watch TV Shows

  139. Pingback: casino

  140. Pingback: Kinokrad 2019 Kinokrad Hd

  141. Pingback: filmy-kinokrad

  142. Pingback: kinokrad-2019

  143. Pingback: filmy-2019-kinokrad

  144. Pingback: serial

  145. Pingback: cerialest.ru

  146. Pingback: youtube2019.ru

  147. Pingback: dorama hdrezka

  148. Pingback: movies hdrezka

  149. Pingback: HDrezka

  150. Pingback: kinosmotretonline

  151. Pingback: LostFilm HD 720

  152. Pingback: trustedmdstorefy.com

  153. Pingback: bofilm ñåðèàë

  154. Pingback: bofilm

  155. Pingback: 1 seriya

  156. Pingback: Êîíñóëüòàöèÿ ïñèõîëîãà

  157. Pingback: topedstoreusa.com

  158. Pingback: hqcialismht.com

  159. Pingback: viagramdtrustser.com

  160. Pingback: купить виагру недорого

  161. Pingback: myonlinebuy.us

  162. Pingback: гдз атанасян 7 9 класс

  163. Pingback: гдз мордкович 10 класс

  164. Pingback: бархударов гдз 9

  165. Pingback: canadianpharmacystorm.com

  166. Pingback: gencialiscoupon.com

  167. Pingback: genericvgrmax.com

  168. Pingback: гдз по русскому бархударов

  169. Pingback: гдз по английскому

  170. Pingback: гдз н

  171. Pingback: гдз по алгебре 9 класс

  172. Pingback: гдз по алгебре 7 класс

  173. Pingback: гдз по английскому языку класс

  174. Pingback: гдз по русскому 8

  175. Pingback: viagrawithoutdoctorspres.com

  176. Pingback: габриелян гдз

  177. Pingback: гдз по английскому 6

  178. Pingback: гдз биболетова

  179. Pingback: гдз учебник

  180. Pingback: гдз михеева

  181. Pingback: гдз по английскому 6 класс

  182. Pingback: гдз 10 11 по алгебре

  183. Pingback: гдз по геометрии 7

  184. Pingback: гдз алимова

  185. Pingback: гдз 2011

  186. Pingback: гдз бархударов

  187. Pingback: canpharmb3.com

  188. Pingback: гдз по алгебре 8 класс

  189. Pingback: гдз алгебра класс макарычев

  190. Pingback: гдз по русскому баранов

  191. Pingback: гдз по алгебре 11

  192. Pingback: гдз 1

  193. Pingback: гдз по геометрии

  194. Pingback: гдз 8 мордкович

  195. Pingback: гдз львов львова

  196. Pingback: 4serial.com

  197. Pingback: See-Season-1

  198. Pingback: Evil-Season-1

  199. Pingback: Evil-Season-2

  200. Pingback: Evil-Season-3

  201. Pingback: Evil-Season-4

  202. Pingback: Dollface-Season-1

  203. Pingback: Queer-Eye-We-re-in-Japan-Season-1

  204. Pingback: гдз 6 виленкин

  205. Pingback: гдз по истории

  206. Pingback: гдз русский язык 10 11

  207. Pingback: гдз по алгебре 9 макарычев

  208. Pingback: гдз 6 класс виленкин

  209. Pingback: гдз по английскому 10 класс

  210. Pingback: гдз по геометрии 7 9

  211. Pingback: гдз 4

  212. Pingback: виленкин гдз

  213. Pingback: serial 2020

  214. Pingback: Dailymotion

  215. Pingback: Watch+movies+2020

  216. Pingback: Genfio.com

  217. Pingback: fioricet2020.com

  218. Pingback: serial-video-film-online

  219. Pingback: tvrv.ru

  220. Pingback: 1plus1serial.site

  221. Pingback: #1plus1

  222. Pingback: 1plus1

  223. Pingback: Watch Movies Online

  224. Pingback: Film

  225. Pingback: Film 2020

  226. Pingback: Film 2021

  227. Pingback: Top 10 Best

  228. Pingback: watch online TV LIVE

  229. Pingback: human design

  230. Pingback: dizajn cheloveka

  231. Pingback: human-design-space

  232. Pingback: koma 2020

  233. Pingback: hischnye-pticy-hisxne-ptic

  234. Pingback: The-Gentlemen

  235. Pingback: led-2

  236. Pingback: pod-vodoi

  237. Pingback: vk 2020

  238. Pingback: parazity-oskar-2020

  239. Pingback: human design human design

  240. Pingback: DSmlka

  241. Pingback: viagra

  242. Pingback: viagra online

  243. Pingback: +

  244. Pingback: ¯jak Son³k

  245. Pingback: astrolog

  246. Pingback: film-kalashnikov-watch

  247. Pingback: generic cialis

  248. Pingback: cialis 20mg

  249. Pingback: watch online

  250. Pingback: cheap generic viagra online

  251. Pingback: generic viagra

  252. Pingback: generic viagra cost

  253. Pingback: kinoxaxru.ru

  254. Pingback: pobachennya u vegas

  255. Pingback: Proshanie so Stalinym

  256. Pingback: viagra pills

  257. Pingback: cialis

  258. Pingback: buy cialis

  259. Pingback: buy viagra

  260. Pingback: generic viagra

  261. Pingback: levitra

  262. Pingback: buy cialis cheap

  263. Pingback: cialis pills

  264. Pingback: strelcov 2020

  265. Pingback: film t-34

  266. Pingback: online pharmacy

  267. Pingback: canadian pharmacy

  268. Pingback: Cialis online

  269. Pingback: generic cialis

  270. Pingback: sildenafil

  271. Pingback: viagra

  272. Pingback: Beograd film 2020

  273. Pingback: buy viagra

  274. Pingback: cialis generic

  275. Pingback: sildenafil citrate

  276. Pingback: psiholog

  277. Pingback: psyhelp_on_line

  278. Pingback: coronavirus

  279. Pingback: cialis black

  280. Pingback: PSYCHOSOCIAL

  281. Pingback: rasstanovka hellinger

  282. Pingback: buy cialis pills

  283. Pingback: viagra online order

  284. Pingback: cialis prices

  285. Pingback: Cherekasi film 2020

  286. Pingback: generic cialis online

  287. Pingback: chloroquine sars

  288. Pingback: cialis from india

  289. Pingback: generic levitra

  290. Pingback: buying cialis cheap

  291. Pingback: Viagra 50 mg

  292. Pingback: Discount viagra without prescription

  293. Pingback: film doktor_liza

  294. Pingback: canadian pharmacy

  295. Pingback: cbd oil

  296. Pingback: djoker film

  297. Pingback: viagra online

  298. Pingback: what is cbd

  299. Pingback: viagra for sale

  300. Pingback: chloroquine online

  301. Pingback: online viagra sales

  302. Pingback: buy albuterol

  303. Pingback: buy viagra online

  304. Pingback: buy cialis 20mg

  305. Pingback: ciprofloxacina

  306. Pingback: gidonline-filmix.ru

  307. Pingback: generic ed pills

  308. Pingback: koronavirus-v-ukraine-doktor-komarovskiy

  309. Pingback: best place to buy cialis online reviews

  310. Pingback: buy naltrexone

  311. Pingback: cialis cost

  312. Pingback: sildenafil without a doctor prescription

  313. Pingback: cialis walmart

  314. Pingback: where to buy cialis

  315. Pingback: best place to buy cialis online

  316. Pingback: viagra online

  317. Pingback: viagra side effects

  318. Pingback: viagra for sale

  319. Pingback: Lopinavir

  320. Pingback: bimatoprost eye drops

  321. Pingback: viagra online

  322. Pingback: buy generic cialis online

  323. Pingback: chloroquine drug

  324. Pingback: tylenol arthritis walmart

  325. Pingback: sildenafil viagra

  326. Pingback: online pharmacy viagra

  327. Pingback: viagra 100mg

  328. Pingback: cialis generic

  329. Pingback: viagra generic

  330. Pingback: viagra generic

  331. Pingback: over the counter viagra

  332. Pingback: Canadian Online Pharmacies

  333. Pingback: Canadian Pharcharmy Online

  334. Pingback: cialis xtl generic

  335. Pingback: ed meds online without doctor prescription

  336. Pingback: Goa Escorts Call Girls

  337. Pingback: Bangalore Escorts Services

  338. Pingback: generic tadalafil 20 mg

  339. Pingback: online ed pills

  340. Pingback: generic viagra

  341. Pingback: ed pills for sale

  342. Pingback: viagra 100mg

  343. Pingback: generic cialis tadalafil

  344. Pingback: hydroxychloroquine rx

  345. Pingback: alternative to viagra

  346. Pingback: cialis generic tadalafil

  347. Pingback: cvs pharmacy

  348. Pingback: t.me/psyhell

  349. Pingback: Ïñèõîëîã îíëàéí

  350. Pingback: walmart pharmacy

  351. Pingback: cialis generic

  352. Pingback: prescription drugs

  353. Pingback: bitly.com

  354. Pingback: viagra 100mg

  355. Pingback: viagra price

  356. Pingback: viagra coupon

  357. Pingback: cheap viagra

  358. Pingback: cialis generic

  359. Pingback: cialis coupon

  360. Pingback: canadian pharmacy cialis

  361. Pingback: cialis 5mg

  362. Pingback: generic cialis online

  363. Pingback: levitra for sale

  364. Pingback: generic viagra

  365. Pingback: levitra 20mg

  366. Pingback: buy levitra online

  367. Pingback: best medicines for erectile dysfunction

  368. Pingback: online casino usa

  369. Pingback: online casino

  370. Pingback: generic viagra online

  371. Pingback: rlowcostmd.com

  372. Pingback: slot machines

  373. Pingback: pala casino online

  374. Pingback: buy real viagra online without prescription

  375. Pingback: buy cialis

  376. Pingback: viagra

  377. Pingback: bitly

  378. Pingback: what is careprost used for

  379. Pingback: payday loans

  380. Pingback: generic cialis 20mg

  381. Pingback: best generic viagra websites

  382. Pingback: cash advance online

  383. Pingback: movies-tekstmovies-tekst

  384. Pingback: buy tadalafil

  385. Pingback: pay day loans

  386. Pingback: viagra pills

  387. Pingback: canada ed drugs

  388. Pingback: Zemlyane 2005 smotret onlajn

  389. Pingback: Vaginal Tightening Gel for Instant Results

  390. Pingback: optional health care viagra abortion

  391. Pingback: casino online real money

  392. Pingback: cialis to buy

  393. Pingback: generic cialis

  394. Pingback: online casinos usa mac

  395. Pingback: playing roulette

  396. Pingback: cialis buy

  397. Pingback: golden nugget online casino

  398. Pingback: generic viagra 100mg pills erections

  399. Pingback: pharmacy

  400. Pingback: cialis generic

  401. Pingback: propecia online

  402. Pingback: cialis buy

  403. Pingback: cbd oil

  404. Pingback: cialis internet

  405. Pingback: buy hydroxychloroquine online

  406. Pingback: best quality cbd oil for sale

  407. Pingback: viagra sildenafil

  408. Pingback: casino online real money

  409. Pingback: smotret onlajn besplatno v kachestve hd 1080

  410. Pingback: best quality cbd oil for sale

  411. Pingback: best casino online

  412. Pingback: gusmeasu.com

  413. Pingback: movies-unhinged-film

  414. Pingback: malenkie-zhenshhiny-2020

  415. Pingback: dom 2

  416. Pingback: free casino games

  417. Pingback: buy levitra

  418. Pingback: real money casino

  419. Pingback: zoom-psykholog

  420. Pingback: zoom-viber-skype

  421. Pingback: buy viagra online cheap

  422. Pingback: erectile dysfunction pills

  423. Pingback: generic viagra online

  424. Pingback: viagra

  425. Pingback: Vratar Galaktiki Film, 2020

  426. Pingback: can i buy viagra online

  427. Pingback: Vratar

  428. Pingback: viagra alternative

  429. Pingback: Cherkassy 2020

  430. Pingback: chernobyl-hbo-2019-1-sezon

  431. Pingback: order viagra

  432. Pingback: ed meds online without doctor prescription

  433. Pingback: viagra vs cialis

  434. Pingback: moskva-psiholog

  435. Pingback: viagra pill

  436. Pingback: batmanapollo.ru

  437. Pingback: viagra online usa

  438. Pingback: buy cialis pills

  439. Pingback: canadian pharmacy king

  440. Pingback: metformin without a doctor prescription

  441. Pingback: cialis generic date

  442. Pingback: buy viagra no prescription

  443. Pingback: prednisone generic

  444. Pingback: 323

  445. Pingback: 525

  446. Pingback: tadalafil 10 mg

  447. Pingback: buy plaquenil online

  448. Pingback: dom2-ru

  449. Pingback: play casino

  450. Pingback: Tenet Online

  451. Pingback: buy generic cialis

  452. Pingback: real casino

  453. Pingback: can you buy viagra over the counter in italy

  454. Pingback: http://viagrabs.com/

  455. Pingback: droga5.net

  456. Pingback: buy viagra orlando

  457. Pingback: psy psy psy psy

  458. Pingback: cialis dosing

  459. Pingback: where can i buy generic viagra in canada

Vélemény, hozzászólás?